]> granicus.if.org Git - clang/commitdiff
fix const correctness.
authorChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 00:32:36 +0000 (00:32 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 00:32:36 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47580 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 965394b52288d10a3159a1d450d2b76bdd2e6c69..82b8cacf95a6064fbc5902dcedc7237ef6d1ee18 100644 (file)
@@ -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; }