[llvm] r233770 - [WinEH] ExitingScope is vacuously true if !PoppedCatches.empty()
David Majnemer
david.majnemer at gmail.com
Tue Mar 31 15:43:57 PDT 2015
Author: majnemer
Date: Tue Mar 31 17:43:56 2015
New Revision: 233770
URL: http://llvm.org/viewvc/llvm-project?rev=233770&view=rev
Log:
[WinEH] ExitingScope is vacuously true if !PoppedCatches.empty()
Remove a redundant condition, no functional change intended.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp?rev=233770&r1=233769&r2=233770&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp Tue Mar 31 17:43:56 2015
@@ -378,7 +378,6 @@ void WinEHNumbering::processCallSite(Arr
}
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(Arr
// 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;
}
More information about the llvm-commits
mailing list