diff options
-rw-r--r-- | include/clang/AST/Stmt.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 760b0c5187..50de8059a0 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -686,9 +686,12 @@ public: } } - Stmt *getCatchBody() const { return SubExprs[BODY]; } - Stmt *getNextCatchStmt() const { return NextAtCatchStmt; } - Stmt *getCatchParamStmt() const { return SubExprs[SELECTOR]; } + const Stmt *getCatchBody() const { return SubExprs[BODY]; } + Stmt *getCatchBody() { return SubExprs[BODY]; } + const Stmt *getNextCatchStmt() const { return NextAtCatchStmt; } + Stmt *getNextCatchStmt() { return NextAtCatchStmt; } + const Stmt *getCatchParamStmt() const { return SubExprs[SELECTOR]; } + Stmt *getCatchParamStmt() { return SubExprs[SELECTOR]; } virtual SourceRange getSourceRange() const { return SourceRange(AtCatchLoc, SubExprs[BODY]->getLocEnd()); |