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/MemoryBuffer.h"
#include <chrono>
+#include <optional>
namespace llvm {
/// directory too often. It does not impact the decision of which file to
/// prune. A value of 0 forces the scan to occur. A value of None disables
/// pruning.
- llvm::Optional<std::chrono::seconds> Interval = std::chrono::seconds(1200);
+ std::optional<std::chrono::seconds> Interval = std::chrono::seconds(1200);
/// The expiration for a file. When a file hasn't been accessed for Expiration
/// seconds, it is removed from the cache. A value of 0 disables the