]> granicus.if.org Git - clang/commitdiff
Work around a gcc4.2 bug.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Nov 2011 00:18:21 +0000 (00:18 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 Nov 2011 00:18:21 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145209 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCleanup.cpp

index 40c316f43633ae19ad93d13fb47296693a5431dd..f09ba72bbc8816a3899c72c3f15a8af6225d030e 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);
 }