[cfe-commits] r57205 - /cfe/trunk/lib/AST/StmtSerialization.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 6 13:55:44 PDT 2008
Author: kremenek
Date: Mon Oct 6 15:55:44 2008
New Revision: 57205
URL: http://llvm.org/viewvc/llvm-project?rev=57205&view=rev
Log:
Don't use DeclStmt::getDecl() to serialize out DeclStmt; use TheDecl directly.
This patch precedes removing getDecl() DeclStmt::entirely.
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=57205&r1=57204&r2=57205&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtSerialization.cpp (original)
+++ cfe/trunk/lib/AST/StmtSerialization.cpp Mon Oct 6 15:55:44 2008
@@ -478,7 +478,7 @@
void DeclStmt::EmitImpl(Serializer& S) const {
S.Emit(StartLoc);
S.Emit(EndLoc);
- S.EmitOwnedPtr(getDecl());
+ S.EmitOwnedPtr(TheDecl);
}
DeclStmt* DeclStmt::CreateImpl(Deserializer& D, ASTContext& C) {
More information about the cfe-commits
mailing list