]> granicus.if.org Git - clang/commitdiff
Add file I forgot to commit in previous commit.
authorTed Kremenek <kremenek@apple.com>
Thu, 12 Mar 2009 18:42:19 +0000 (18:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 12 Mar 2009 18:42:19 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66820 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 9bb327874b4f050c09d2ade54411e27fb1821682..e1737f37f50e0b703f4e852d1200283a1c3b5f40 100644 (file)
@@ -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; }