[cfe-commits] r46832 - /cfe/trunk/AST/StmtSerialization.cpp

Ted Kremenek kremenek at apple.com
Wed Feb 6 15:03:14 PST 2008


Author: kremenek
Date: Wed Feb  6 17:03:14 2008
New Revision: 46832

URL: http://llvm.org/viewvc/llvm-project?rev=46832&view=rev
Log:
Minor reordering of the serialization of the fields of MemberExpr to result
in a smaller encoding on disk.

Modified:
    cfe/trunk/AST/StmtSerialization.cpp

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

==============================================================================
--- cfe/trunk/AST/StmtSerialization.cpp (original)
+++ cfe/trunk/AST/StmtSerialization.cpp Wed Feb  6 17:03:14 2008
@@ -685,16 +685,16 @@
   S.Emit(MemberLoc);
   S.EmitPtr(MemberDecl);
   S.EmitBool(IsArrow);
-  S.EmitOwnedPtr(Base);
   S.Emit(getType());
+  S.EmitOwnedPtr(Base);
 }
 
 MemberExpr* MemberExpr::CreateImpl(Deserializer& D) {
   SourceLocation L = SourceLocation::ReadVal(D);
   FieldDecl* MemberDecl = cast<FieldDecl>(D.ReadPtr<Decl>());
   bool IsArrow = D.ReadBool();
-  Expr* base = D.ReadOwnedPtr<Expr>();
   QualType T = QualType::ReadVal(D);
+  Expr* base = D.ReadOwnedPtr<Expr>();
   
   return new MemberExpr(base,IsArrow,MemberDecl,L,T); 
 }





More information about the cfe-commits mailing list