From 74151a2388e141f42d71e7cbdb7e5c59088d9382 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Nov 2022 14:16:06 -0800 Subject: [PATCH] [Support] Use std::optional in HashBuilder.h (NFC) 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 --- llvm/include/llvm/Support/HashBuilder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/HashBuilder.h b/llvm/include/llvm/Support/HashBuilder.h index 5df0bc2..d2b47c8 100644 --- a/llvm/include/llvm/Support/HashBuilder.h +++ b/llvm/include/llvm/Support/HashBuilder.h @@ -23,6 +23,7 @@ #include "llvm/Support/type_traits.h" #include +#include #include namespace llvm { @@ -80,7 +81,7 @@ protected: Hasher(*OptionalHasher) {} private: - Optional OptionalHasher; + std::optional OptionalHasher; HasherT &Hasher; }; -- 2.7.4