diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2015-04-22 21:38:15 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2015-04-22 21:38:15 +0000 |
| commit | dc012fa26690bef5cd7b56e28bbbe9d1aa17349a (patch) | |
| tree | 98eea4882cb0f30190beef442b48c562bff7a89a /clang/lib/CodeGen/EHScopeStack.h | |
| parent | 952d95141828eeb787d17c7f92d9dd6ea455cd0c (diff) | |
| download | bcm5719-llvm-dc012fa26690bef5cd7b56e28bbbe9d1aa17349a.tar.gz bcm5719-llvm-dc012fa26690bef5cd7b56e28bbbe9d1aa17349a.zip | |
Revert "Revert r234581, it might have caused a few miscompiles in Chromium."
This reverts commit r234700. It turns out that the lifetime markers
were not the cause of Chromium failing but a bug which was uncovered by
optimizations exposed by the markers.
llvm-svn: 235553
Diffstat (limited to 'clang/lib/CodeGen/EHScopeStack.h')
| -rw-r--r-- | clang/lib/CodeGen/EHScopeStack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 363d8b8fe4a..a7951888c82 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/lib/CodeGen/EHScopeStack.h @@ -319,6 +319,10 @@ public: /// Pops a terminate handler off the stack. void popTerminate(); + // Returns true iff the current scope is either empty or contains only + // lifetime markers, i.e. no real cleanup code + bool containsOnlyLifetimeMarkers(stable_iterator Old) const; + /// Determines whether the exception-scopes stack is empty. bool empty() const { return StartOfData == EndOfBuffer; } |

