summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-02-02 23:15:15 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-02-02 23:15:15 +0000
commit3bda6b1f8e2076955990031f8155025a40f8eea9 (patch)
tree0d0241ca3101a620641ce7fb2400595617ffd899 /clang/lib/Sema/SemaDecl.cpp
parentcaed1c9370dd492894c655cf7eb7567a6f1887d0 (diff)
downloadbcm5719-llvm-3bda6b1f8e2076955990031f8155025a40f8eea9.tar.gz
bcm5719-llvm-3bda6b1f8e2076955990031f8155025a40f8eea9.zip
Add some code to accurately perform odr-used marking for variables per the C++11 rules.
llvm-svn: 149641
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 6ace744fc30..8a0e461ec2b 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -7299,6 +7299,8 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
assert(ExprCleanupObjects.empty() && "Leftover temporaries in function");
assert(!ExprNeedsCleanups && "Unaccounted cleanups in function");
+ assert(MaybeODRUseExprs.empty() &&
+ "Leftover expressions for odr-use checking");
}
if (!IsInstantiation)
OpenPOWER on IntegriCloud