use Value* constructor of CallSite to create potentially improper site, and test that

llvm-svn: 109581
This commit is contained in:
Gabor Greif 2010-07-28 14:28:18 +00:00
parent 5bf74d648d
commit 0a970698da
1 changed files with 1 additions and 2 deletions

View File

@ -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;