From: Chris Lattner Date: Tue, 26 Feb 2008 00:32:36 +0000 (+0000) Subject: fix const correctness. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b22ef6feb04e6c960f2bfe7bb9ffa8d2ebb4fa14;p=clang fix const correctness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47580 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 965394b522..82b8cacf95 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -563,7 +563,7 @@ public: 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; }