summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-24 19:19:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-24 19:19:26 +0000
commit2db411f5a77e6f18ad14f234227b3484099a8a96 (patch)
treef5055b7adf7e64bca91562d12ae2d628fd54018b
parent0435ed5875a17c7eb36bae398bdb1375b514f35d (diff)
downloadbcm5719-llvm-2db411f5a77e6f18ad14f234227b3484099a8a96.tar.gz
bcm5719-llvm-2db411f5a77e6f18ad14f234227b3484099a8a96.zip
Fix -Asserts warning.
llvm-svn: 92137
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index ded89b453c9..2e4ee63ebdb 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -3875,8 +3875,7 @@ void Sema::AddCXXDirectInitializerToDecl(DeclPtrTy Dcl,
MultiExprArg Exprs,
SourceLocation *CommaLocs,
SourceLocation RParenLoc) {
- unsigned NumExprs = Exprs.size();
- assert(NumExprs != 0 && Exprs.get() && "missing expressions");
+ assert(Exprs.size() != 0 && Exprs.get() && "missing expressions");
Decl *RealDecl = Dcl.getAs<Decl>();
// If there is no declaration, there was an error parsing it. Just ignore
OpenPOWER on IntegriCloud