diff options
Diffstat (limited to 'clang/lib/AST/StmtSerialization.cpp')
-rw-r--r-- | clang/lib/AST/StmtSerialization.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/AST/StmtSerialization.cpp b/clang/lib/AST/StmtSerialization.cpp index f72800d8ad1..a4fd8c35673 100644 --- a/clang/lib/AST/StmtSerialization.cpp +++ b/clang/lib/AST/StmtSerialization.cpp @@ -1114,18 +1114,12 @@ ObjCStringLiteral* ObjCStringLiteral::CreateImpl(Deserializer& D, ASTContext& C) void BlockExpr::EmitImpl(Serializer& S) const { S.Emit(getType()); - S.Emit(getCaretLocation()); - S.EmitOwnedPtr(Body); + S.EmitOwnedPtr(TheBlock); } BlockExpr* BlockExpr::CreateImpl(Deserializer& D, ASTContext& C) { - QualType Q = QualType::ReadVal(D); - SourceLocation L = SourceLocation::ReadVal(D); - /*CompoundStmt* BodyStmt = cast<CompoundStmt>(*/D.ReadOwnedPtr<Stmt>(C)/*)*/; - assert(0 && "Cannot deserialize BlockBlockExpr yet"); - // FIXME: need to handle parameters. - //return new BlockBlockExpr(L, Q, BodyStmt); - return 0; + QualType T = QualType::ReadVal(D); + return new BlockExpr(cast<BlockDecl>(D.ReadOwnedPtr<Decl>(C)),T); } void BlockDeclRefExpr::EmitImpl(Serializer& S) const { |