summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-27 22:53:28 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-27 22:53:28 +0000
commit0630a71742404f214d17827bfe804dd344b062a8 (patch)
treedfdbac2d2375c69026b4b9a8f549a483a4db9643 /llvm/lib
parent571bfd6a2d9656bdf2a26e34bab13eb0d7c790d2 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud