]> granicus.if.org Git - clang/commitdiff
add a const version of this accessor.
authorChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 00:17:41 +0000 (00:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 00:17:41 +0000 (00:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126594 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h

index d1f7d667f33d8d6bd130cbc6d8efd15f8d788338..d7934a1af330a5d3cd616a4c5d7d4b7a7c9744d0 100644 (file)
@@ -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(); }