diff options
-rw-r--r-- | clang/include/clang/AST/Stmt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index d1f7d667f33..d7934a1af33 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -516,6 +516,9 @@ public: void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } Stmt *getSubStmt(); + const Stmt *getSubStmt() const { + return const_cast<SwitchCase*>(this)->getSubStmt(); + } SourceRange getSourceRange() const { return SourceRange(); } |