[llvm] Use std::aligned_storage_t (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 11 Sep 2022 23:11:39 +0000 (16:11 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 11 Sep 2022 23:11:39 +0000 (16:11 -0700)
llvm/include/llvm/ADT/FunctionExtras.h

index 27fff59..a694e0e 100644 (file)
@@ -160,9 +160,8 @@ protected:
     // 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