This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
#include "llvm/ADT/Optional.h"
#include "llvm/Support/raw_ostream.h"
+#include <optional>
namespace llvm {
/// Storage for the stream, if we're owning our own stream. This is
/// intentionally declared after Installer.
- Optional<raw_fd_ostream> OSHolder;
+ std::optional<raw_fd_ostream> OSHolder;
/// The actual stream to use.
raw_fd_ostream *OS;