mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
[WinEH] Allow CatchHigh to be equal to TryHigh
Catch blocks which are empty may be in the same state as their try blocks. It is not meaningful to give the catch block its own state number in this case because it can't do anything exceptional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44b800f44d
commit
416a5187f7
@ -437,7 +437,7 @@ void Win64Exception::emitCXXFrameHandler3Table(const MachineFunction *MF) {
|
||||
std::max(CatchHigh, FuncInfo.CatchHandlerMaxState[HT.Handler]);
|
||||
|
||||
assert(TBME.TryLow <= TBME.TryHigh);
|
||||
assert(CatchHigh > TBME.TryHigh);
|
||||
assert(CatchHigh >= TBME.TryHigh);
|
||||
OS.EmitIntValue(TBME.TryLow, 4); // TryLow
|
||||
OS.EmitIntValue(TBME.TryHigh, 4); // TryHigh
|
||||
OS.EmitIntValue(CatchHigh, 4); // CatchHigh
|
||||
|
Loading…
x
Reference in New Issue
Block a user