diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-04-27 05:56:55 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-04-27 05:56:55 +0000 |
commit | b4f3637cec2f4b914528bc6b27d00b8317f7a995 (patch) | |
tree | 572329429bcb082b4f16cb1db40e1d967476f1de /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 1f3e2b296602ca23c276e41439868b41c8de41ad (diff) | |
download | bcm5719-llvm-b4f3637cec2f4b914528bc6b27d00b8317f7a995.tar.gz bcm5719-llvm-b4f3637cec2f4b914528bc6b27d00b8317f7a995.zip |
Revert "[CodeGen] Avoid destructing a callee-destructued struct type in a"
This reverts commit r331016, which broke a windows bot.
http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/11727
llvm-svn: 331019
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 7889d089074..091fdc7ab7a 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -587,7 +587,7 @@ public: /// \brief Enters a new scope for capturing cleanups, all of which /// will be executed once the scope is exited. class RunCleanupsScope { - EHScopeStack::stable_iterator CleanupStackDepth, OldCleanupScopeDepth; + EHScopeStack::stable_iterator CleanupStackDepth; size_t LifetimeExtendedCleanupStackSize; bool OldDidCallStackSave; protected: @@ -610,8 +610,6 @@ public: CGF.LifetimeExtendedCleanupStack.size(); OldDidCallStackSave = CGF.DidCallStackSave; CGF.DidCallStackSave = false; - OldCleanupScopeDepth = CGF.CurrentCleanupScopeDepth; - CGF.CurrentCleanupScopeDepth = CleanupStackDepth; } /// \brief Exit this cleanup scope, emitting any accumulated cleanups. @@ -637,14 +635,9 @@ public: CGF.PopCleanupBlocks(CleanupStackDepth, LifetimeExtendedCleanupStackSize, ValuesToReload); PerformCleanup = false; - CGF.CurrentCleanupScopeDepth = OldCleanupScopeDepth; } }; - // Cleanup stack depth of the RunCleanupsScope that was pushed most recently. - EHScopeStack::stable_iterator CurrentCleanupScopeDepth = - EHScopeStack::stable_end(); - class LexicalScope : public RunCleanupsScope { SourceRange Range; SmallVector<const LabelDecl*, 4> Labels; @@ -1102,11 +1095,6 @@ private: /// decls. DeclMapTy LocalDeclMap; - // Keep track of the cleanups for callee-destructed parameters pushed to the - // cleanup stack so that they can be deactivated later. - llvm::DenseMap<const ParmVarDecl *, EHScopeStack::stable_iterator> - CalleeDestructedParamCleanups; - /// SizeArguments - If a ParmVarDecl had the pass_object_size attribute, this /// will contain a mapping from said ParmVarDecl to its implicit "object_size" /// parameter. |