mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
revert r159440. As Duncan pointed out, the test for invoke is not needed at this point
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76c6ccbd4c
commit
ea47553006
@ -265,8 +265,7 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
|
||||
return isa<UndefValue>(II->getArgOperand(1));
|
||||
}
|
||||
|
||||
if (isAllocLikeFn(I))
|
||||
return isa<CallInst>(I); // do not mess around with invoke here
|
||||
if (isAllocLikeFn(I)) return true;
|
||||
|
||||
if (CallInst *CI = isFreeCall(I))
|
||||
if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
|
||||
|
Loading…
Reference in New Issue
Block a user