]> granicus.if.org Git - clang/commitdiff
Sigh, another workaround for MSVC.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Nov 2011 00:41:08 +0000 (00:41 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Nov 2011 00:41:08 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145211 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCleanup.cpp

index f09ba72bbc8816a3899c72c3f15a8af6225d030e..c3eb2c67bc8a3bc0d6d47d23bf9b826aebf01ec0 100644 (file)
@@ -1099,6 +1099,6 @@ llvm::Value *CodeGenFunction::getNormalCleanupDestSlot() {
 void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary,
                                        QualType TempType,
                                        llvm::Value *Ptr) {
-  pushDestroy(NormalAndEHCleanup, Ptr, TempType, *destroyCXXObject,
+  pushDestroy(NormalAndEHCleanup, Ptr, TempType, *&destroyCXXObject,
               /*useEHCleanup*/ true);
 }