]> granicus.if.org Git - clang/commitdiff
Fix -Asserts warning.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 24 Dec 2009 19:19:26 +0000 (19:19 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 24 Dec 2009 19:19:26 +0000 (19:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92137 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index ded89b453c9ded4140391a3d0c7920e353e96355..2e4ee63ebdb5f0d1a9fb233f92f30e13d8550137 100644 (file)
@@ -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