diff options
author | Reid Kleckner <rnk@google.com> | 2015-09-10 22:11:13 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-09-10 22:11:13 +0000 |
commit | 2586aac9087a9864ebd6cdee4f1f747e86eceaad (patch) | |
tree | fb8e71992550760423f6c7e36f98e57b995f887f /clang/lib/CodeGen/CGCleanup.cpp | |
parent | da6dcc5d926cb7481ff28b127c5e67da4501a99c (diff) | |
download | bcm5719-llvm-2586aac9087a9864ebd6cdee4f1f747e86eceaad.tar.gz bcm5719-llvm-2586aac9087a9864ebd6cdee4f1f747e86eceaad.zip |
[SEH] Use cleanupendpad so that WinEHPrepare gets the coloring right
Cleanupendpad is a lot like catchendpad, so we can reuse the same
EHScopeStack type.
llvm-svn: 247349
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCleanup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp index b5a64d0a28a..31c870ff6f6 100644 --- a/clang/lib/CodeGen/CGCleanup.cpp +++ b/clang/lib/CodeGen/CGCleanup.cpp @@ -262,10 +262,10 @@ void EHScopeStack::pushTerminate() { InnermostEHScope = stable_begin(); } -void EHScopeStack::pushCatchEnd(llvm::BasicBlock *CatchEndBlockBB) { - char *Buffer = allocate(EHCatchEndScope::getSize()); - auto *CES = new (Buffer) EHCatchEndScope(InnermostEHScope); - CES->setCachedEHDispatchBlock(CatchEndBlockBB); +void EHScopeStack::pushPadEnd(llvm::BasicBlock *PadEndBB) { + char *Buffer = allocate(EHPadEndScope::getSize()); + auto *CES = new (Buffer) EHPadEndScope(InnermostEHScope); + CES->setCachedEHDispatchBlock(PadEndBB); InnermostEHScope = stable_begin(); } |