projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946849f
)
[llvm] Use std::aligned_storage_t (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 11 Sep 2022 23:11:39 +0000
(16:11 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 11 Sep 2022 23:11:39 +0000
(16:11 -0700)
llvm/include/llvm/ADT/FunctionExtras.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/FunctionExtras.h
b/llvm/include/llvm/ADT/FunctionExtras.h
index
27fff59
..
a694e0e
100644
(file)
--- a/
llvm/include/llvm/ADT/FunctionExtras.h
+++ b/
llvm/include/llvm/ADT/FunctionExtras.h
@@
-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