From 1424b308c3c82acce5e23a1bcd0efbfa6dbd0349 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 28 Nov 2011 00:18:21 +0000 Subject: [PATCH] Work around a gcc4.2 bug. llvm-svn: 145209 --- 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 40c316f43633..f09ba72bbc88 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); }