diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-05-30 21:21:49 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-05-30 21:21:49 +0000 |
| commit | c78576e2504b2e7e666422900923ecf155a8abaf (patch) | |
| tree | 0ba756faad00a9ccae56fa491be0d2bf4cd74ef7 /clang/lib/Sema | |
| parent | 4f44fd5c6f97bc5a577dd21dcfbfd5653414f700 (diff) | |
| download | bcm5719-llvm-c78576e2504b2e7e666422900923ecf155a8abaf.tar.gz bcm5719-llvm-c78576e2504b2e7e666422900923ecf155a8abaf.zip | |
Add the newly created temporary to the ExprTemporaries stack.
llvm-svn: 72638
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 5d18c3c9f22..641fcb7e108 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/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)); } |

