aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-28 14:28:18 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-28 14:28:18 +0000
commitc5be6c53eff0f3be7ecfb8bba6c09e5aa30f0d1b (patch)
tree08ef7e973fb03f58784471687fbd05eb2172b32e
parent2f531e4d9fcb3a88f5b8d0813531de30ec33ea69 (diff)
downloadexternal_llvm-c5be6c53eff0f3be7ecfb8bba6c09e5aa30f0d1b.zip
external_llvm-c5be6c53eff0f3be7ecfb8bba6c09e5aa30f0d1b.tar.gz
external_llvm-c5be6c53eff0f3be7ecfb8bba6c09e5aa30f0d1b.tar.bz2
use Value* constructor of CallSite to create potentially improper site, and test that
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/DeadStoreElimination.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp
index dddefed..ce15f48 100644
--- a/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -401,10 +401,9 @@ bool DSE::handleEndBlock(BasicBlock &BB) {
}
continue;
- } else if (CallSite::get(BBI).getInstruction() != 0) {
+ } else if (CallSite CS = cast<Value>(BBI)) {
// If this call does not access memory, it can't
// be undeadifying any of our pointers.
- CallSite CS = CallSite::get(BBI);
if (AA.doesNotAccessMemory(CS))
continue;