From 06184086c10c6672f4bcc3630a5a2b0bed048f63 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Aug 2007 17:33:55 +0000 Subject: [PATCH] minor fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40966 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index a95315e6f5..dc70201b56 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -530,9 +530,10 @@ public: CompoundLiteralExpr(QualType ty, Expr *init) : Expr(CompoundLiteralExprClass, ty), Init(init) {} - Expr *getInitializer() const { return Init; } + const Expr *getInitializer() const { return Init; } + Expr *getInitializer() { return Init; } - virtual SourceRange getSourceRange() const { return SourceRange(); } // FIXME + virtual SourceRange getSourceRange() const { return Init->getSourceRange(); } virtual void visit(StmtVisitor &Visitor); static bool classof(const Stmt *T) { -- 2.50.1