diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-26 03:27:38 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-26 03:27:38 +0000 |
commit | 7cad745d49fdab4f021c638cec4cca8e5c7c5bdb (patch) | |
tree | 132f573db792a6277551a70c9c973ea12569f3e2 | |
parent | 4f833c7610f51cc9f7e156261b2dd49c5d74ceab (diff) | |
download | bcm5719-llvm-7cad745d49fdab4f021c638cec4cca8e5c7c5bdb.tar.gz bcm5719-llvm-7cad745d49fdab4f021c638cec4cca8e5c7c5bdb.zip |
Fix a silly bug that Nicholas noticed.
llvm-svn: 44324
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 68366f6d912..dd567aac95d 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -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)); |