From: Peter Collingbourne Date: Mon, 28 Nov 2011 00:41:08 +0000 (+0000) Subject: Sigh, another workaround for MSVC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=567f02f3b81b5f16b990bae0640d77022d46c922;p=clang Sigh, another workaround for MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145211 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCleanup.cpp b/lib/CodeGen/CGCleanup.cpp index f09ba72bbc..c3eb2c67bc 100644 --- a/lib/CodeGen/CGCleanup.cpp +++ b/lib/CodeGen/CGCleanup.cpp @@ -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); }