mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Let libcall semantics decide whether it knows about functions
with definitions or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -155,8 +155,8 @@ LibCallAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
|
|||||||
|
|
||||||
// If this is a direct call to a function that LCI knows about, get the
|
// If this is a direct call to a function that LCI knows about, get the
|
||||||
// information about the runtime function.
|
// information about the runtime function.
|
||||||
if (Function *F = CS.getCalledFunction()) {
|
if (LCI) {
|
||||||
if (LCI && F->isDeclaration()) {
|
if (Function *F = CS.getCalledFunction()) {
|
||||||
if (const LibCallFunctionInfo *FI = LCI->getFunctionInfo(F)) {
|
if (const LibCallFunctionInfo *FI = LCI->getFunctionInfo(F)) {
|
||||||
MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, P, Size));
|
MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, P, Size));
|
||||||
if (MRInfo == NoModRef) return NoModRef;
|
if (MRInfo == NoModRef) return NoModRef;
|
||||||
|
Reference in New Issue
Block a user