From: Ted Kremenek Date: Thu, 12 Mar 2009 18:42:19 +0000 (+0000) Subject: Add file I forgot to commit in previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc192323e740eec20d6d7c3162067242403aa37b;p=clang Add file I forgot to commit in previous commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 9bb327874b..e1737f37f5 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -225,8 +225,8 @@ public: return ImplementationControl(DeclImplementation); } - virtual Stmt *getBody() const { return Body; } - void setBody(Stmt *B) { Body = B; } + virtual CompoundStmt *getBody() const { return (CompoundStmt*) Body; } + void setBody(CompoundStmt *B) { Body = (Stmt*) B; } // Implement isa/cast/dyncast/etc. static bool classof(const Decl *D) { return D->getKind() == ObjCMethod; }