aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-28 00:17:41 +0000
committerChris Lattner <sabre@nondot.org>2011-02-28 00:17:41 +0000
commit702e5474f570d0b83db9f354619b8ac5bc8ed743 (patch)
tree854202652d39797a9fb1bfbd1b079dec16b96638
parentaa2187de137e5b809dcbbe14f3b61ae907a3d8aa (diff)
add a const version of this accessor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126594 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Stmt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h
index d1f7d667f3..d7934a1af3 100644
--- a/include/clang/AST/Stmt.h
+++ b/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(); }