mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +00:00
[WinEH] ExitingScope is vacuously true if !PoppedCatches.empty()
Remove a redundant condition, no functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64386621ec
commit
f6fb716e0f
@ -378,7 +378,6 @@ void WinEHNumbering::processCallSite(ArrayRef<ActionHandler *> Actions,
|
||||
}
|
||||
|
||||
bool EnteringScope = (int)Actions.size() > FirstMismatch;
|
||||
bool ExitingScope = (int)HandlerStack.size() > FirstMismatch;
|
||||
|
||||
// Don't recurse while we are looping over the handler stack. Instead, defer
|
||||
// the numbering of the catch handlers until we are done popping.
|
||||
@ -396,7 +395,7 @@ void WinEHNumbering::processCallSite(ArrayRef<ActionHandler *> Actions,
|
||||
// We need to create a new state number if we are exiting a try scope and we
|
||||
// will not push any more actions.
|
||||
int TryHigh = NextState - 1;
|
||||
if (ExitingScope && !EnteringScope && !PoppedCatches.empty()) {
|
||||
if (!EnteringScope && !PoppedCatches.empty()) {
|
||||
createUnwindMapEntry(currentEHNumber(), nullptr);
|
||||
++NextState;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user