summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit0a970698dac9dd9cde5d5b28c6c3082f4d7f1c33 (patch)
tree95260fe9d4c7d5f7c253fc07c452f2c0c5efe17d /llvm/lib/Transforms
parent5bf74d648d2867698213e6ccf50ae8a07e702285 (diff)
downloadbcm5719-llvm-0a970698dac9dd9cde5d5b28c6c3082f4d7f1c33.tar.gz
bcm5719-llvm-0a970698dac9dd9cde5d5b28c6c3082f4d7f1c33.zip
use Value* constructor of CallSite to create potentially improper site, and test that
llvm-svn: 109581
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index dddefeda083..ce15f48958d 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud