From b22ef6feb04e6c960f2bfe7bb9ffa8d2ebb4fa14 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Feb 2008 00:32:36 +0000 Subject: [PATCH] fix const correctness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47580 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Decl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0