From d77ecb675b647b54ba142be043b17139f62be6f7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 26 Nov 2022 14:57:44 -0800 Subject: [PATCH] [CodeGen] Use std::optional in SafeStack.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/CodeGen/SafeStack.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp index 0e65a0b..bcad7a3 100644 --- a/llvm/lib/CodeGen/SafeStack.cpp +++ b/llvm/lib/CodeGen/SafeStack.cpp @@ -67,6 +67,7 @@ #include #include #include +#include #include #include @@ -896,7 +897,7 @@ public: DominatorTree *DT; bool ShouldPreserveDominatorTree; - Optional LazilyComputedDomTree; + std::optional LazilyComputedDomTree; // Do we already have a DominatorTree avaliable from the previous pass? // Note that we should *NOT* require it, to avoid the case where we end up -- 2.7.4