diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index 210a142123d4..1111bd31e1aa 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -152,10 +152,7 @@ public: // hasSolitaryDecl - This method returns true if this DeclStmt refers // to a single Decl. bool hasSolitaryDecl() const; - - const ScopedDecl *getDecl() const { return TheDecl; } - ScopedDecl *getDecl() { return TheDecl; } - + const ScopedDecl* getSolitaryDecl() const { assert (hasSolitaryDecl() && "Caller assumes this DeclStmt points to one Decl*");