diff options
| -rw-r--r-- | clang/include/clang/AST/Decl.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 965394b5228..82b8cacf95a 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/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; }  | 

