diff options
Diffstat (limited to 'llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h')
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h b/llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h index 50e26f8449df1..35745993248cd 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/RPC/RawByteChannel.h @@ -87,13 +87,13 @@ private: template <typename ChannelT, typename T> class SerializationTraits< ChannelT, T, T, - typename std::enable_if< + std::enable_if_t< std::is_base_of<RawByteChannel, ChannelT>::value && (std::is_same<T, uint8_t>::value || std::is_same<T, int8_t>::value || std::is_same<T, uint16_t>::value || std::is_same<T, int16_t>::value || std::is_same<T, uint32_t>::value || std::is_same<T, int32_t>::value || std::is_same<T, uint64_t>::value || std::is_same<T, int64_t>::value || - std::is_same<T, char>::value)>::type> { + std::is_same<T, char>::value)>> { public: static Error serialize(ChannelT &C, T V) { support::endian::byte_swap<T, support::big>(V); @@ -109,9 +109,9 @@ public: }; template <typename ChannelT> -class SerializationTraits<ChannelT, bool, bool, - typename std::enable_if<std::is_base_of< - RawByteChannel, ChannelT>::value>::type> { +class SerializationTraits< + ChannelT, bool, bool, + std::enable_if_t<std::is_base_of<RawByteChannel, ChannelT>::value>> { public: static Error serialize(ChannelT &C, bool V) { uint8_t Tmp = V ? 1 : 0; @@ -131,9 +131,9 @@ public: }; template <typename ChannelT> -class SerializationTraits<ChannelT, std::string, StringRef, - typename std::enable_if<std::is_base_of< - RawByteChannel, ChannelT>::value>::type> { +class SerializationTraits< + ChannelT, std::string, StringRef, + std::enable_if_t<std::is_base_of<RawByteChannel, ChannelT>::value>> { public: /// RPC channel serialization for std::strings. static Error serialize(RawByteChannel &C, StringRef S) { @@ -144,11 +144,11 @@ public: }; template <typename ChannelT, typename T> -class SerializationTraits<ChannelT, std::string, T, - typename std::enable_if< - std::is_base_of<RawByteChannel, ChannelT>::value && - (std::is_same<T, const char*>::value || - std::is_same<T, char*>::value)>::type> { +class SerializationTraits< + ChannelT, std::string, T, + std::enable_if_t<std::is_base_of<RawByteChannel, ChannelT>::value && + (std::is_same<T, const char *>::value || + std::is_same<T, char *>::value)>> { public: static Error serialize(RawByteChannel &C, const char *S) { return SerializationTraits<ChannelT, std::string, StringRef>::serialize(C, @@ -157,9 +157,9 @@ public: }; template <typename ChannelT> -class SerializationTraits<ChannelT, std::string, std::string, - typename std::enable_if<std::is_base_of< - RawByteChannel, ChannelT>::value>::type> { +class SerializationTraits< + ChannelT, std::string, std::string, + std::enable_if_t<std::is_base_of<RawByteChannel, ChannelT>::value>> { public: /// RPC channel serialization for std::strings. static Error serialize(RawByteChannel &C, const std::string &S) { |