diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h --- a/llvm/include/llvm/IR/Value.h +++ b/llvm/include/llvm/IR/Value.h @@ -769,8 +769,8 @@ /// /// This is the greatest alignment value supported by load, store, and alloca /// instructions, and global values. - static const unsigned MaxAlignmentExponent = 29; - static const unsigned MaximumAlignment = 1u << MaxAlignmentExponent; + static constexpr unsigned MaxAlignmentExponent = 29; + static constexpr unsigned MaximumAlignment = 1u << MaxAlignmentExponent; /// Mutate the type of this Value to be of the specified type. ///