diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-24 19:19:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-24 19:19:26 +0000 |
commit | 51846265634fe593bfe8046d82b4f8fbe335e791 (patch) | |
tree | c50492d5dc70b4f9e5ea5d1479c835b9a0e41324 | |
parent | 31777a2540879051a3c643b90e02c3fd3d315243 (diff) |
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92137 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index ded89b453c..2e4ee63ebd 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/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 |