]> granicus.if.org Git - clang/commitdiff
Don't use DeclStmt::getDecl() to serialize out DeclStmt; use TheDecl directly.
authorTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 20:55:44 +0000 (20:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 20:55:44 +0000 (20:55 +0000)
This patch precedes removing getDecl() DeclStmt::entirely.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtSerialization.cpp

index dea0ba43422d9a74bce166f5e83ae6ec52b58cc0..b226bdf8f9ad5d4d6af5040d217b87f4e33050e9 100644 (file)
@@ -478,7 +478,7 @@ ContinueStmt* ContinueStmt::CreateImpl(Deserializer& D, ASTContext& C) {
 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) {