diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-04-17 17:20:30 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-04-17 17:20:30 +0000 |
commit | 2be05eef3181cecc83011e07abc35a410c3b9bbb (patch) | |
tree | d466841d82228cd8d7dc6d3984a9e35598bef52c /llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | |
parent | ce0a0665241c116cf693936c11924ea756560951 (diff) | |
download | bcm5719-llvm-2be05eef3181cecc83011e07abc35a410c3b9bbb.tar.gz bcm5719-llvm-2be05eef3181cecc83011e07abc35a410c3b9bbb.zip |
[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.
llvm-svn: 235212
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp index f89d36455f4..c5f1df88355 100644 --- a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp @@ -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 |