[cfe-commits] r72638 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

Anders Carlsson andersca at mac.com
Sat May 30 14:21:49 PDT 2009


Author: andersca
Date: Sat May 30 16:21:49 2009
New Revision: 72638

URL: http://llvm.org/viewvc/llvm-project?rev=72638&view=rev
Log:
Add the newly created temporary to the ExprTemporaries stack.

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=72638&r1=72637&r2=72638&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Sat May 30 16:21:49 2009
@@ -1536,7 +1536,8 @@
   
   CXXTemporary *Temp = CXXTemporary::Create(Context, 
                                             RD->getDestructor(Context));
-
+  ExprTemporaries.push_back(Temp);
+  
   // FIXME: Add the temporary to the temporaries vector.
   return Owned(CXXBindTemporaryExpr::Create(Context, Temp, E));
 }





More information about the cfe-commits mailing list