mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
The lower invoke pass needs to have unreachable code elimination run after it
because it could create such things. This fixes a MingW buildbot test failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -288,13 +288,15 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
// pad is shared by multiple invokes and is also a target of a normal
|
||||
// edge from elsewhere.
|
||||
PM.add(createSjLjEHPass(getTargetLowering()));
|
||||
PM.add(createDwarfEHPass(this, OptLevel==CodeGenOpt::None));
|
||||
break;
|
||||
// FALLTHROUGH
|
||||
case ExceptionHandling::Dwarf:
|
||||
PM.add(createDwarfEHPass(this, OptLevel==CodeGenOpt::None));
|
||||
break;
|
||||
case ExceptionHandling::None:
|
||||
PM.add(createLowerInvokePass(getTargetLowering()));
|
||||
|
||||
// The lower invoke pass may create unreachable code. Remove it.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user