[cfe-commits] r47580 - /cfe/trunk/include/clang/AST/Decl.h
Chris Lattner
sabre at nondot.org
Mon Feb 25 16:32:36 PST 2008
Author: lattner
Date: Mon Feb 25 18:32:36 2008
New Revision: 47580
URL: http://llvm.org/viewvc/llvm-project?rev=47580&view=rev
Log:
fix const correctness.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=47580&r1=47579&r2=47580&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Feb 25 18:32:36 2008
@@ -563,7 +563,7 @@
const llvm::APSInt &getInitVal() const { return Val; }
void setInitExpr(Expr *E) { Init = E; }
- void setInitVal(llvm::APSInt &V) { Val = V; }
+ void setInitVal(const llvm::APSInt &V) { Val = V; }
// Implement isa/cast/dyncast/etc.
static bool classof(const Decl *D) { return D->getKind() == EnumConstant; }
More information about the cfe-commits
mailing list