diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-28 14:28:18 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-28 14:28:18 +0000 |
commit | 0a970698dac9dd9cde5d5b28c6c3082f4d7f1c33 (patch) | |
tree | 95260fe9d4c7d5f7c253fc07c452f2c0c5efe17d /llvm/lib/Transforms | |
parent | 5bf74d648d2867698213e6ccf50ae8a07e702285 (diff) | |
download | bcm5719-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.cpp | 3 |
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; |