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:
3d3bc72
)
[ADT] Remove Optional<T>::create
author
Kazu Hirata
<kazu@google.com>
Wed, 14 Dec 2022 18:34:34 +0000
(10:34 -0800)
committer
Kazu Hirata
<kazu@google.com>
Wed, 14 Dec 2022 18:34:34 +0000
(10:34 -0800)
The last use of Optional<T>::create was removed on December 10, 2022
in commit
1cb7fba3e57d6c31f05c7a2bda1634da49dd1d18
.
Differential Revision: https://reviews.llvm.org/D139775
llvm/include/llvm/ADT/Optional.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/Optional.h
b/llvm/include/llvm/ADT/Optional.h
index
5574382
..
6702738
100644
(file)
--- a/
llvm/include/llvm/ADT/Optional.h
+++ b/
llvm/include/llvm/ADT/Optional.h
@@
-258,10
+258,6
@@
public:
Storage.emplace(std::forward<ArgTypes>(Args)...);
}
- static constexpr Optional create(const T *y) {
- return y ? Optional(*y) : Optional();
- }
-
Optional &operator=(const T &y) {
Storage = y;
return *this;