Fix a silly bug that Nicholas noticed.

llvm-svn: 44324
This commit is contained in:
Owen Anderson 2007-11-26 03:27:38 +00:00
parent 4f833c7610
commit 7cad745d49
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C,
// FreeInsts erase the entire structure // FreeInsts erase the entire structure
pointerSize = ~0UL; pointerSize = ~0UL;
} else if (CallSite::get(QI).getInstruction() != 0) { } else if (CallSite::get(QI).getInstruction() != 0 &&
cast<CallInst>(QI)->getCalledFunction()) {
AliasAnalysis::ModRefBehavior result = AliasAnalysis::ModRefBehavior result =
AA.getModRefBehavior(cast<CallInst>(QI)->getCalledFunction(), AA.getModRefBehavior(cast<CallInst>(QI)->getCalledFunction(),
CallSite::get(QI)); CallSite::get(QI));