diff options
author | Tim Shen <timshen91@gmail.com> | 2016-06-09 19:54:46 +0000 |
---|---|---|
committer | Tim Shen <timshen91@gmail.com> | 2016-06-09 19:54:46 +0000 |
commit | f120a7b6a31ae73e0d59f58e6f1dd72318a72525 (patch) | |
tree | 10a5b92b5f5a301c4d0f4c71ad29e67856b40fdd /clang/lib/Sema/SemaDecl.cpp | |
parent | 17b4701070e068eebdb1927130feb0eed1273980 (diff) | |
download | bcm5719-llvm-f120a7b6a31ae73e0d59f58e6f1dd72318a72525.tar.gz bcm5719-llvm-f120a7b6a31ae73e0d59f58e6f1dd72318a72525.zip |
[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr.
These ExprWithCleanups are added for holding a RunCleanupsScope not
for destructor calls; rather, they are for lifetime marks. This requires
ExprWithCleanups to keep a bit to indicate whether it have cleanups with
side effects (e.g. dtor calls).
Differential Revision: http://reviews.llvm.org/D20498
llvm-svn: 272296
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index fab72f36605..632532ad44e 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -11648,7 +11648,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, assert(ExprCleanupObjects.size() == ExprEvalContexts.back().NumCleanupObjects && "Leftover temporaries in function"); - assert(!ExprNeedsCleanups && "Unaccounted cleanups in function"); + assert(!Cleanup.exprNeedsCleanups() && "Unaccounted cleanups in function"); assert(MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking"); } |