diff options
-rw-r--r-- | llvm/include/llvm/Support/Alignment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Alignment.h b/llvm/include/llvm/Support/Alignment.h index 5e8e686150d..50e96e5a1fb 100644 --- a/llvm/include/llvm/Support/Alignment.h +++ b/llvm/include/llvm/Support/Alignment.h @@ -94,7 +94,7 @@ public: /// Allow constructions of constexpr Align. template <size_t kValue> constexpr static LogValue Constant() { - return LogValue{CTLog2<kValue>()}; + return LogValue{static_cast<uint8_t>(CTLog2<kValue>())}; } /// Allow constructions of constexpr Align from types. |