diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-27 22:53:28 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-27 22:53:28 +0000 |
| commit | 0630a71742404f214d17827bfe804dd344b062a8 (patch) | |
| tree | dfdbac2d2375c69026b4b9a8f549a483a4db9643 /llvm/lib | |
| parent | 571bfd6a2d9656bdf2a26e34bab13eb0d7c790d2 (diff) | |
| download | bcm5719-llvm-0630a71742404f214d17827bfe804dd344b062a8.tar.gz bcm5719-llvm-0630a71742404f214d17827bfe804dd344b062a8.zip | |
reintroduce original (asserting) semantics of CallSite(Instruction *II)
add instead a CallSite(Value* V) constructor that is consistent with ImmutableCallSize
and use that one in client code
llvm-svn: 109553
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 662752f0c3e..4c3cf804d5c 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -120,7 +120,7 @@ getCallSiteDependencyFrom(CallSite CS, bool isReadOnlyCall, Pointer = CI->getArgOperand(0); // calls to free() erase the entire structure PointerSize = ~0ULL; - } else if (CallSite InstCS = Inst) { + } else if (CallSite InstCS = cast<Value>(Inst)) { // Debug intrinsics don't cause dependences. if (isa<DbgInfoIntrinsic>(Inst)) continue; // If these two calls do not interfere, look past it. |

