summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/DeclObjC.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h
index 9bb327874b4..e1737f37f50 100644
--- a/clang/include/clang/AST/DeclObjC.h
+++ b/clang/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; }
OpenPOWER on IntegriCloud