Przeglądaj źródła

Work around a gcc4.2 bug.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145209 91177308-0d34-0410-b5e6-96231b3b80d8
Peter Collingbourne 13 lat temu
rodzic
commit
3fb91f6abd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/CodeGen/CGCleanup.cpp

+ 1 - 1
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);
 }