mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix a silly bug that Nicholas noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00a6d1448d
commit
97d4e51df1
@ -94,7 +94,8 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C,
|
||||
|
||||
// FreeInsts erase the entire structure
|
||||
pointerSize = ~0UL;
|
||||
} else if (CallSite::get(QI).getInstruction() != 0) {
|
||||
} else if (CallSite::get(QI).getInstruction() != 0 &&
|
||||
cast<CallInst>(QI)->getCalledFunction()) {
|
||||
AliasAnalysis::ModRefBehavior result =
|
||||
AA.getModRefBehavior(cast<CallInst>(QI)->getCalledFunction(),
|
||||
CallSite::get(QI));
|
||||
|
Loading…
Reference in New Issue
Block a user