From b68a38a960d8266aff9600c69c1080dbbef33ec7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 26 Nov 2022 15:29:30 -0800 Subject: [LTO] Use std::optional in LTO.cpp (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/lib/LTO/LTO.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 6e7fde6..54c1732 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -57,6 +57,7 @@ #include "llvm/Transforms/Utils/FunctionImportUtils.h" #include "llvm/Transforms/Utils/SplitModule.h" +#include #include using namespace llvm; @@ -1254,7 +1255,7 @@ class InProcessThinBackend : public ThinBackendProc { std::set CfiFunctionDefs; std::set CfiFunctionDecls; - Optional Err; + std::optional Err; std::mutex ErrMu; bool ShouldEmitIndexFiles; -- cgit v1.1