forked from OSchip/llvm-project
A landingpad instruction is neither folded nor dead.
llvm-svn: 138387
This commit is contained in:
parent
51b554247d
commit
4eb0433672
|
@ -808,6 +808,7 @@ static bool isFoldedOrDeadInstruction(const Instruction *I,
|
|||
return !I->mayWriteToMemory() && // Side-effecting instructions aren't folded.
|
||||
!isa<TerminatorInst>(I) && // Terminators aren't folded.
|
||||
!isa<DbgInfoIntrinsic>(I) && // Debug instructions aren't folded.
|
||||
!isa<LandingPadInst>(I) && // Landingpad instructions aren't folded.
|
||||
!FuncInfo->isExportedInst(I); // Exported instrs must be computed.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue