diff options
Diffstat (limited to 'llvm/include/llvm/Support/Endian.h')
-rw-r--r-- | llvm/include/llvm/Support/Endian.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/Endian.h b/llvm/include/llvm/Support/Endian.h index 87aecedd3a4b..5e7c1e961b9d 100644 --- a/llvm/include/llvm/Support/Endian.h +++ b/llvm/include/llvm/Support/Endian.h @@ -13,9 +13,7 @@ #ifndef LLVM_SUPPORT_ENDIAN_H #define LLVM_SUPPORT_ENDIAN_H -#include "llvm/Support/AlignOf.h" #include "llvm/Support/Compiler.h" -#include "llvm/Support/Host.h" #include "llvm/Support/SwapByteOrder.h" #include <cassert> #include <cstddef> @@ -111,7 +109,7 @@ inline void write(void *memory, value_type value) { } template <typename value_type> -using make_unsigned_t = typename std::make_unsigned<value_type>::type; +using make_unsigned_t = std::make_unsigned_t<value_type>; /// Read a value of a particular endianness from memory, for a location /// that starts at the given bit offset within the first byte. |