[cfe-commits] r92137 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Daniel Dunbar
daniel at zuster.org
Thu Dec 24 11:19:26 PST 2009
Author: ddunbar
Date: Thu Dec 24 13:19:26 2009
New Revision: 92137
URL: http://llvm.org/viewvc/llvm-project?rev=92137&view=rev
Log:
Fix -Asserts warning.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=92137&r1=92136&r2=92137&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Thu Dec 24 13:19:26 2009
@@ -3875,8 +3875,7 @@
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
More information about the cfe-commits
mailing list