From: Chris Lattner Date: Thu, 9 Aug 2007 17:33:55 +0000 (+0000) Subject: minor fixes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06184086c10c6672f4bcc3630a5a2b0bed048f63;p=clang minor fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40966 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) {