diff options
-rw-r--r-- | include/clang/AST/Stmt.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 210a142123..1111bd31e1 100644 --- a/include/clang/AST/Stmt.h +++ b/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*"); |