diff options
-rw-r--r-- | include/clang/AST/Expr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index d1aac8100d..2f2d4a6e39 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -728,7 +728,7 @@ public: return SourceRange(getLHS()->getLocStart(), RBracketLoc); } - virtual SourceLocation getExprLoc() const { return RBracketLoc; } + virtual SourceLocation getExprLoc() const { return getBase()->getExprLoc(); } static bool classof(const Stmt *T) { return T->getStmtClass() == ArraySubscriptExprClass; |