[llvm] r374761 - Fix D68936
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 02:31:00 PDT 2019
Author: gchatelet
Date: Mon Oct 14 02:31:00 2019
New Revision: 374761
URL: http://llvm.org/viewvc/llvm-project?rev=374761&view=rev
Log:
Fix D68936
Modified:
llvm/trunk/include/llvm/Support/Alignment.h
Modified: llvm/trunk/include/llvm/Support/Alignment.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Alignment.h?rev=374761&r1=374760&r2=374761&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Alignment.h (original)
+++ llvm/trunk/include/llvm/Support/Alignment.h Mon Oct 14 02:31:00 2019
@@ -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.
More information about the llvm-commits
mailing list