[cfe-commits] r60364 - /cfe/trunk/lib/AST/StmtSerialization.cpp

Douglas Gregor doug.gregor at gmail.com
Mon Dec 1 11:45:18 PST 2008


Author: dgregor
Date: Mon Dec  1 13:45:16 2008
New Revision: 60364

URL: http://llvm.org/viewvc/llvm-project?rev=60364&view=rev
Log:
Use EmitInt, not Emit, to emit unsigned values

Modified:
    cfe/trunk/lib/AST/StmtSerialization.cpp

Modified: cfe/trunk/lib/AST/StmtSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtSerialization.cpp?rev=60364&r1=60363&r2=60364&view=diff

==============================================================================
--- cfe/trunk/lib/AST/StmtSerialization.cpp (original)
+++ cfe/trunk/lib/AST/StmtSerialization.cpp Mon Dec  1 13:45:16 2008
@@ -1445,8 +1445,8 @@
 void CXXNewExpr::EmitImpl(Serializer& S) const {
   S.Emit(getType());
   S.Emit(Initializer);
-  S.Emit(NumPlacementArgs);
-  S.Emit(NumConstructorArgs);
+  S.EmitInt(NumPlacementArgs);
+  S.EmitInt(NumConstructorArgs);
   S.BatchEmitOwnedPtrs(NumPlacementArgs + NumConstructorArgs, SubExprs);
   assert((OperatorNew == 0 || S.isRegistered(OperatorNew)) &&
          (OperatorDelete == 0 || S.isRegistered(OperatorDelete)) &&





More information about the cfe-commits mailing list