diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-03-31 22:43:56 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-03-31 22:43:56 +0000 |
commit | d1079bf27ab5007a5bc6581b27bbfbd477155932 (patch) | |
tree | 45913fc0755295b60270303ed4853f4f0f53c420 /llvm/lib/CodeGen | |
parent | 5d2939302a4ea7ae0df14afc9618ee22b8d47bad (diff) | |
download | bcm5719-llvm-d1079bf27ab5007a5bc6581b27bbfbd477155932.tar.gz bcm5719-llvm-d1079bf27ab5007a5bc6581b27bbfbd477155932.zip |
[WinEH] ExitingScope is vacuously true if !PoppedCatches.empty()
Remove a redundant condition, no functional change intended.
llvm-svn: 233770
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index e2235fbc044..64af04087e7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -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; } |