[llvm] a21c8be - [llvm] Use std::aligned_storage_t (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 11 16:11:53 PDT 2022
Author: Kazu Hirata
Date: 2022-09-11T16:11:39-07:00
New Revision: a21c8be1cc1e8d09160641eafdb6b80ac6bbc358
URL: https://github.com/llvm/llvm-project/commit/a21c8be1cc1e8d09160641eafdb6b80ac6bbc358
DIFF: https://github.com/llvm/llvm-project/commit/a21c8be1cc1e8d09160641eafdb6b80ac6bbc358.diff
LOG: [llvm] Use std::aligned_storage_t (NFC)
Added:
Modified:
llvm/include/llvm/ADT/FunctionExtras.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/FunctionExtras.h b/llvm/include/llvm/ADT/FunctionExtras.h
index 27fff59115a8..a694e0ecfc77 100644
--- a/llvm/include/llvm/ADT/FunctionExtras.h
+++ b/llvm/include/llvm/ADT/FunctionExtras.h
@@ -160,9 +160,8 @@ template <typename ReturnT, typename... ParamTs> class UniqueFunctionBase {
// provide three pointers worth of storage here.
// This is mutable as an inlined `const unique_function<void() const>` may
// still modify its own mutable members.
- mutable
- typename std::aligned_storage<InlineStorageSize, alignof(void *)>::type
- InlineStorage;
+ mutable std::aligned_storage_t<InlineStorageSize, alignof(void *)>
+ InlineStorage;
} StorageUnion;
// A compressed pointer to either our dispatching callback or our table of
More information about the llvm-commits
mailing list