[cfe-commits] r140388 - /cfe/trunk/lib/Serialization/ASTReaderStmt.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 23 09:57:55 PDT 2011
Author: dgregor
Date: Fri Sep 23 11:57:55 2011
New Revision: 140388
URL: http://llvm.org/viewvc/llvm-project?rev=140388&view=rev
Log:
Eliminate an MSVC comparison warning, from Aaron Ballman
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=140388&r1=140387&r2=140388&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderStmt.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderStmt.cpp Fri Sep 23 11:57:55 2011
@@ -1061,7 +1061,7 @@
void ASTStmtReader::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
VisitExpr(E);
- assert(Record[Idx] == E->Param.getInt() && "We messed up at creation ?");
+ assert(Record[Idx] == (unsigned)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