From fc38dfe499e92d6ad6b0de3cf16eff058c951824 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 28 Nov 2011 00:41:08 +0000 Subject: [PATCH] Sigh, another workaround for MSVC. llvm-svn: 145211 --- clang/lib/CodeGen/CGCleanup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp index f09ba72bbc88..c3eb2c67bc8a 100644 --- a/clang/lib/CodeGen/CGCleanup.cpp +++ b/clang/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); }