summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-06-09 21:13:39 +0000
committerTim Shen <timshen91@gmail.com>2016-06-09 21:13:39 +0000
commit17b3deeff3f0b246789c37911a445dbd4ad3456f (patch)
treee03729ec0980541f07ba560ef329fb47b3443254 /clang/lib/Sema/SemaDecl.cpp
parentee2ce4a50e16548cd4274e8532491cc8b06d7a8d (diff)
downloadbcm5719-llvm-17b3deeff3f0b246789c37911a445dbd4ad3456f.tar.gz
bcm5719-llvm-17b3deeff3f0b246789c37911a445dbd4ad3456f.zip
Revert "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
This reverts r272296, since there are clang-tidy failures that appear to be caused by this change. llvm-svn: 272310
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 632532ad44e..fab72f36605 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(!Cleanup.exprNeedsCleanups() && "Unaccounted cleanups in function");
+ assert(!ExprNeedsCleanups && "Unaccounted cleanups in function");
assert(MaybeODRUseExprs.empty() &&
"Leftover expressions for odr-use checking");
}
OpenPOWER on IntegriCloud