diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-26 00:32:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-26 00:32:36 +0000 |
commit | b22ef6feb04e6c960f2bfe7bb9ffa8d2ebb4fa14 (patch) | |
tree | 68a3d4386fe26b9215788f51764ee358c6359901 | |
parent | d34066c224f782056c18f154abe04ef590473fd9 (diff) |
fix const correctness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47580 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Decl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |