diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-12 23:40:45 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-12 23:40:45 +0000 |
commit | 11c033e8aa6cf4cb89c7c74cff6ca6197a6d52c8 (patch) | |
tree | 7f64b16a8cd23a0439877f0ef0d6c608c37db27b /clang/lib/CodeGen/CodeGenFunction.h | |
parent | f3e0e3acdafb2b52eb197b4d8251aa2f91886d81 (diff) | |
download | llvm-11c033e8aa6cf4cb89c7c74cff6ca6197a6d52c8.zip llvm-11c033e8aa6cf4cb89c7c74cff6ca6197a6d52c8.tar.gz llvm-11c033e8aa6cf4cb89c7c74cff6ca6197a6d52c8.tar.bz2 |
SEH: Use the SEHTryEpilogueStack instead of a separate bool
We don't need a bool to track this now that we have a stack for it.
llvm-svn: 228982
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 67188df..12f066b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -263,9 +263,6 @@ public: /// potentially set the return value. bool SawAsmBlock; - /// Codegen is currently inside an SEH try block. - bool IsSEHTryScope; - const CodeGen::CGBlockInfo *BlockInfo; llvm::Value *BlockPointer; @@ -365,6 +362,9 @@ public: llvm::BasicBlock *ResumeBB; }; + /// Returns true inside SEH __try blocks. + bool isSEHTryScope() const { return !SEHTryEpilogueStack.empty(); } + /// pushFullExprCleanup - Push a cleanup to be run at the end of the /// current full-expression. Safe against the possibility that /// we're currently inside a conditionally-evaluated expression. |