diff --git a/llvm/include/llvm/ADT/None.h b/llvm/include/llvm/ADT/None.h --- a/llvm/include/llvm/ADT/None.h +++ b/llvm/include/llvm/ADT/None.h @@ -16,12 +16,14 @@ #ifndef LLVM_ADT_NONE_H #define LLVM_ADT_NONE_H +#include "llvm/Support/Compiler.h" #include namespace llvm { /// A simple null object to allow implicit construction of Optional /// and similar types without having to spell out the specialization's name. -using NoneType = std::nullopt_t; +LLVM_DEPRECATED("Use std::noneopt_t instead.", "std::nullopt_t") +typedef std::nullopt_t NoneType; inline constexpr std::nullopt_t None = std::nullopt; }