We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78b486 commit 90a202fCopy full SHA for 90a202f
compiler-rt/lib/orc/error.h
@@ -367,8 +367,8 @@ template <typename T> class ORC_RT_NODISCARD Expected {
367
}
368
369
union {
370
- std::aligned_union_t<1, storage_type> TStorage;
371
- std::aligned_union_t<1, error_type> ErrorStorage;
+ alignas(storage_type) char TStorage[sizeof(storage_type)];
+ alignas(error_type) char ErrorStorage[sizeof(error_type)];
372
};
373
374
bool HasError : 1;
llvm/include/llvm/ADT/TrieRawHashMap.h
@@ -72,7 +72,7 @@ class ThreadSafeTrieRawHashMapBase {
72
private:
73
template <class T> struct AllocValueType {
74
char Base[TrieContentBaseSize];
75
- std::aligned_union_t<sizeof(T), T> Content;
+ alignas(T) char Content[sizeof(T)];
76
77
78
protected:
0 commit comments