r204109 - Fix const correctness issue in CXXConstructExpr::getArgs().
Peter Collingbourne
peter at pcc.me.uk
Mon Mar 17 21:42:02 PDT 2014
Author: pcc
Date: Mon Mar 17 23:42:01 2014
New Revision: 204109
URL: http://llvm.org/viewvc/llvm-project?rev=204109&view=rev
Log:
Fix const correctness issue in CXXConstructExpr::getArgs().
Modified:
cfe/trunk/include/clang/AST/ExprCXX.h
Modified: cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprCXX.h?rev=204109&r1=204108&r2=204109&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/trunk/include/clang/AST/ExprCXX.h Mon Mar 17 23:42:01 2014
@@ -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.
More information about the cfe-commits
mailing list