mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
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
This commit is contained in:
parent
ce4a62639f
commit
d09475c226
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user