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 | 97d4e51df1dabc43978ce6f33f6e5276d7ee297f (patch) | |
tree | d38a20cb6d4dc0e5a8f0a91b8765ed41682b78c2 /lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 00a6d1448d27b5140b911caf2eca9585abdae5c8 (diff) |
Fix a silly bug that Nicholas noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 68366f6d91..dd567aac95 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/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)); |