Skip to content

Commit 48d4e61

Browse files
authored
[cpp23] Remove std::aligned_union in TrieRawHashMap
std::aligned_union is deprecated in C++23. Bug: https://crbug.com/388068052
1 parent a625bc6 commit 48d4e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/TrieRawHashMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ThreadSafeTrieRawHashMapBase {
7272
private:
7373
template <class T> struct AllocValueType {
7474
char Base[TrieContentBaseSize];
75-
std::aligned_union_t<sizeof(T), T> Content;
75+
alignas(T) char Content[sizeof(T)];
7676
};
7777

7878
protected:

0 commit comments

Comments
 (0)