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 | d09475c2269ca822620e2e561af62d0a8aec7b1e (patch) | |
tree | 08ef7e973fb03f58784471687fbd05eb2172b32e /lib/Transforms/Scalar/DeadStoreElimination.cpp | |
parent | ce4a62639f64d2f24577ad4e872f01cd7d6bc82f (diff) | |
download | llvm-d09475c2269ca822620e2e561af62d0a8aec7b1e.tar.gz llvm-d09475c2269ca822620e2e561af62d0a8aec7b1e.tar.bz2 llvm-d09475c2269ca822620e2e561af62d0a8aec7b1e.tar.xz |
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
Diffstat (limited to 'lib/Transforms/Scalar/DeadStoreElimination.cpp')
-rw-r--r-- | lib/Transforms/Scalar/DeadStoreElimination.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index dddefeda08..ce15f48958 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; |