From: Anders Carlsson Date: Sat, 30 May 2009 21:21:49 +0000 (+0000) Subject: Add the newly created temporary to the ExprTemporaries stack. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=860306ee303d4c60068b76cca7cfc7b60323f8b7;p=clang Add the newly created temporary to the ExprTemporaries stack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72638 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 5d18c3c9f2..641fcb7e10 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -1536,7 +1536,8 @@ Sema::OwningExprResult Sema::MaybeBindToTemporary(Expr *E) { 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)); }