[PATCH] D65452: [Support] Workaround a GCC 4.8 bug on constant expression evaluation.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 07:59:05 PDT 2019
hliao updated this revision to Diff 212349.
hliao added a comment.
Format the commit message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65452/new/
https://reviews.llvm.org/D65452
Files:
llvm/include/llvm/Support/Endian.h
Index: llvm/include/llvm/Support/Endian.h
===================================================================
--- llvm/include/llvm/Support/Endian.h
+++ llvm/include/llvm/Support/Endian.h
@@ -205,7 +205,8 @@
template<typename ValueType,
endianness Endian,
- std::size_t Alignment>
+ std::size_t Alignment,
+ std::size_t ALIGN = PickAlignment<ValueType, Alignment>::value>
struct packed_endian_specific_integral {
using value_type = ValueType;
static constexpr endianness endian = Endian;
@@ -247,8 +248,7 @@
private:
struct {
- alignas(PickAlignment<value_type,
- alignment>::value) char buffer[sizeof(value_type)];
+ LLVM_ALIGNAS(ALIGN) char buffer[sizeof(value_type)];
} Value;
public:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65452.212349.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190730/52b84b8f/attachment.bin>
More information about the llvm-commits
mailing list