[cfe-commits] r40966 - /cfe/trunk/include/clang/AST/Expr.h
Chris Lattner
sabre at nondot.org
Thu Aug 9 10:33:58 PDT 2007
Author: lattner
Date: Thu Aug 9 12:33:55 2007
New Revision: 40966
URL: http://llvm.org/viewvc/llvm-project?rev=40966&view=rev
Log:
minor fixes
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=40966&r1=40965&r2=40966&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Thu Aug 9 12:33:55 2007
@@ -530,9 +530,10 @@
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) {
More information about the cfe-commits
mailing list