mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
use Value* constructor of CallSite to create potentially improper site, and test that
llvm-svn: 109581
This commit is contained in:
parent
9bb43864b1
commit
16a98fddef
@ -401,10 +401,9 @@ bool DSE::handleEndBlock(BasicBlock &BB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
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
|
// If this call does not access memory, it can't
|
||||||
// be undeadifying any of our pointers.
|
// be undeadifying any of our pointers.
|
||||||
CallSite CS = CallSite::get(BBI);
|
|
||||||
if (AA.doesNotAccessMemory(CS))
|
if (AA.doesNotAccessMemory(CS))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user