Page MenuHomePhabricator

D58969.diff
No OneTemporary

File Metadata

Created
Sat, Aug 24, 11:01 PM

D58969.diff

Index: llvm/trunk/include/llvm/Support/Endian.h
===================================================================
--- llvm/trunk/include/llvm/Support/Endian.h
+++ llvm/trunk/include/llvm/Support/Endian.h
@@ -203,10 +203,14 @@
namespace detail {
-template<typename value_type,
- endianness endian,
- std::size_t alignment>
+template<typename ValueType,
+ endianness Endian,
+ std::size_t Alignment>
struct packed_endian_specific_integral {
+ using value_type = ValueType;
+ static constexpr endianness endian = Endian;
+ static constexpr std::size_t alignment = Alignment;
+
packed_endian_specific_integral() = default;
explicit packed_endian_specific_integral(value_type val) { *this = val; }

Event Timeline