aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-11-26 15:29:30 -0800
committerKazu Hirata <kazu@google.com>2022-11-26 15:29:30 -0800
commitb68a38a960d8266aff9600c69c1080dbbef33ec7 (patch)
treeb5d4d9b6fdce69143d19a4d33ea30e62cee603c9 /llvm/lib/LTO/LTO.cpp
parente5a1ee531b2d325b0c793f849abbbbd4c9d315fd (diff)
downloadllvm-b68a38a960d8266aff9600c69c1080dbbef33ec7.zip
llvm-b68a38a960d8266aff9600c69c1080dbbef33ec7.tar.gz
llvm-b68a38a960d8266aff9600c69c1080dbbef33ec7.tar.bz2
[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
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp3
1 files changed, 2 insertions, 1 deletions
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 <optional>
#include <set>
using namespace llvm;
@@ -1254,7 +1255,7 @@ class InProcessThinBackend : public ThinBackendProc {
std::set<GlobalValue::GUID> CfiFunctionDefs;
std::set<GlobalValue::GUID> CfiFunctionDecls;
- Optional<Error> Err;
+ std::optional<Error> Err;
std::mutex ErrMu;
bool ShouldEmitIndexFiles;