mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
The "landingpad" instruction will never be "trivially" dead.
llvm-svn: 137642
This commit is contained in:
parent
4854258d9c
commit
0c8837a1f1
@ -226,6 +226,10 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB, bool DeleteDeadConditions) {
|
||||
bool llvm::isInstructionTriviallyDead(Instruction *I) {
|
||||
if (!I->use_empty() || isa<TerminatorInst>(I)) return false;
|
||||
|
||||
// We don't want the landingpad instruction removed by anything this general.
|
||||
if (isa<LandingPadInst>(I))
|
||||
return false;
|
||||
|
||||
// We don't want debug info removed by anything this general, unless
|
||||
// debug info is empty.
|
||||
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
|
||||
|
Loading…
Reference in New Issue
Block a user