diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-26 03:33:36 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-26 03:33:36 +0000 |
commit | 516bbd42e62d709013824d6fb8445a0cfda3129a (patch) | |
tree | 1a44b96f7cf895fd81aa2737a3c732bc3498d903 /lib/CodeGen/CGCleanup.cpp | |
parent | 24466d8a90a5c097d7cc505bd0a2433f0835dc73 (diff) |
Use function pointers, rather than references, to pass Destroyers
around, in the process cleaning up the various gcc/msvc compiler
workarounds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCleanup.cpp')
-rw-r--r-- | lib/CodeGen/CGCleanup.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGCleanup.cpp b/lib/CodeGen/CGCleanup.cpp index f1f17afdb4..645ef2520d 100644 --- a/lib/CodeGen/CGCleanup.cpp +++ b/lib/CodeGen/CGCleanup.cpp @@ -1098,8 +1098,6 @@ llvm::Value *CodeGenFunction::getNormalCleanupDestSlot() { void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary, QualType TempType, llvm::Value *Ptr) { - // This local is a GCC and MSVC compiler workaround. - Destroyer *destroyer = &destroyCXXObject; - pushDestroy(NormalAndEHCleanup, Ptr, TempType, *destroyer, + pushDestroy(NormalAndEHCleanup, Ptr, TempType, destroyCXXObject, /*useEHCleanup*/ true); } |