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 @@ -348,6 +348,7 @@ return None; } template + LLVM_DEPRECATED("Use transform instead.", "transform") auto map(const Function &F) const & -> Optional { if (*this) return F(value()); @@ -378,6 +379,7 @@ return None; } template + LLVM_DEPRECATED("Use transform instead.", "transform") auto map(const Function &F) && -> Optional { if (*this)