diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-18 04:42:01 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-18 04:42:01 +0000 |
commit | cb97c48243d600e29889be85bdd61ce24999f041 (patch) | |
tree | 4572e748ad594272ff2257bf09480916ff26e88b | |
parent | 7fcb35f5e159e34fe349e92cf5f703b306e029e7 (diff) | |
download | bcm5719-llvm-cb97c48243d600e29889be85bdd61ce24999f041.tar.gz bcm5719-llvm-cb97c48243d600e29889be85bdd61ce24999f041.zip |
Fix const correctness issue in CXXConstructExpr::getArgs().
llvm-svn: 204109
-rw-r--r-- | clang/include/clang/AST/ExprCXX.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/include/clang/AST/ExprCXX.h b/clang/include/clang/AST/ExprCXX.h index eb589a2a24b..6ed55ca02d2 100644 --- a/clang/include/clang/AST/ExprCXX.h +++ b/clang/include/clang/AST/ExprCXX.h @@ -1161,7 +1161,10 @@ public: const_arg_iterator arg_begin() const { return Args; } const_arg_iterator arg_end() const { return Args + NumArgs; } - Expr **getArgs() const { return reinterpret_cast<Expr **>(Args); } + Expr **getArgs() { return reinterpret_cast<Expr **>(Args); } + const Expr *const *getArgs() const { + return const_cast<CXXConstructExpr *>(this)->getArgs(); + } unsigned getNumArgs() const { return NumArgs; } /// \brief Return the specified argument. |