mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
After talking with Bill, it seems like the LandingPad handling here is likely
to be wrong (or at least somewhat suspect). Leave a FIXME for Bill. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33cb445fb6
commit
6437f2c2e2
@ -2266,10 +2266,7 @@ bool SimplifyCFGOpt::SimplifyUnreachable(UnreachableInst *UI) {
|
|||||||
!isa<LandingPadInst>(BBI)) {
|
!isa<LandingPadInst>(BBI)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Note that deleting LandingPad's here is in fact okay, although it
|
// FIXME: Handling of LandingPadInst (landingpad) is suspicious.
|
||||||
// involves a bit of subtle reasoning. If this inst is a LandingPad,
|
|
||||||
// all the predecessors of this block will be the unwind edges of Invokes,
|
|
||||||
// and we can therefore guarantee this block will be erased.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete this instruction (any uses are guaranteed to be dead)
|
// Delete this instruction (any uses are guaranteed to be dead)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user