aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/ExprObjC.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/AST/ExprObjC.h')
-rw-r--r--include/clang/AST/ExprObjC.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h
index dfb842a3d0..14e3d2cd13 100644
--- a/include/clang/AST/ExprObjC.h
+++ b/include/clang/AST/ExprObjC.h
@@ -706,8 +706,12 @@ public:
arg_iterator arg_begin() { return getArgs(); }
arg_iterator arg_end() { return getArgs() + NumArgs; }
- const_arg_iterator arg_begin() const { return (Stmt **)getArgs(); }
- const_arg_iterator arg_end() const { return (Stmt **)getArgs() + NumArgs; }
+ const_arg_iterator arg_begin() const {
+ return const_cast<Stmt**>(getArgs());
+ }
+ const_arg_iterator arg_end() const {
+ return const_cast<Stmt**>(getArgs()) + NumArgs;
+ }
};
/// ObjCSuperExpr - Represents the "super" expression in Objective-C,