diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -258,10 +258,6 @@ Storage.emplace(std::forward(Args)...); } - static constexpr Optional create(const T *y) { - return y ? Optional(*y) : Optional(); - } - Optional &operator=(const T &y) { Storage = y; return *this;