mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
MachineBasicBlock::SplitCriticalEdge() should follow LLVM IR variant and refuse to break edge to EH landing pad. rdar://11300144
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -596,6 +596,11 @@ bool MachineBasicBlock::canFallThrough() {
|
||||
|
||||
MachineBasicBlock *
|
||||
MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) {
|
||||
// Splitting the critical edge to a landing pad block is non-trivial. Don't do
|
||||
// it in this generic function.
|
||||
if (Succ->isLandingPad())
|
||||
return NULL;
|
||||
|
||||
MachineFunction *MF = getParent();
|
||||
DebugLoc dl; // FIXME: this is nowhere
|
||||
|
||||
|
Reference in New Issue
Block a user