diff options
author | Kazu Hirata <kazu@google.com> | 2022-11-26 14:57:44 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-11-26 14:57:44 -0800 |
commit | d77ecb675b647b54ba142be043b17139f62be6f7 (patch) | |
tree | 09c0d94a502b8fadfac818ac17d00d77e9083456 /llvm/lib/CodeGen/SafeStack.cpp | |
parent | 8a45032e5c3ad8581fd925b1ec670c82df38f8fe (diff) | |
download | llvm-d77ecb675b647b54ba142be043b17139f62be6f7.zip llvm-d77ecb675b647b54ba142be043b17139f62be6f7.tar.gz llvm-d77ecb675b647b54ba142be043b17139f62be6f7.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SafeStack.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <algorithm> #include <cassert> #include <cstdint> +#include <optional> #include <string> #include <utility> @@ -896,7 +897,7 @@ public: DominatorTree *DT; bool ShouldPreserveDominatorTree; - Optional<DominatorTree> LazilyComputedDomTree; + std::optional<DominatorTree> 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 |