[cfe-commits] r140424 - /cfe/trunk/lib/Serialization/ASTReaderStmt.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 23 15:07:41 PDT 2011
Author: dgregor
Date: Fri Sep 23 17:07:41 2011
New Revision: 140424
URL: http://llvm.org/viewvc/llvm-project?rev=140424&view=rev
Log:
Fix up assertion a bit more
Modified:
cfe/trunk/lib/Serialization/ASTReaderStmt.cpp
Modified: cfe/trunk/lib/Serialization/ASTReaderStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderStmt.cpp?rev=140424&r1=140423&r2=140424&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderStmt.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderStmt.cpp Fri Sep 23 17:07:41 2011
@@ -1061,7 +1061,7 @@
void ASTStmtReader::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
VisitExpr(E);
- assert(Record[Idx] == (unsigned)E->Param.getInt() && "We messed up at creation ?");
+ assert((bool)Record[Idx] == E->Param.getInt() && "We messed up at creation ?");
++Idx; // HasOtherExprStored and SubExpr was handled during creation.
E->Param.setPointer(ReadDeclAs<ParmVarDecl>(Record, Idx));
E->Loc = ReadSourceLocation(Record, Idx);
More information about the cfe-commits
mailing list