[CodeGen] Use std::optional in ShadowStackGCLowering.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
This commit is contained in:
parent
a5ef7bb5c1
commit
5b839fc2d0
|
@ -39,6 +39,7 @@
|
|||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Transforms/Utils/EscapeEnumerator.h"
|
||||
#include <cassert>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
@ -305,7 +306,7 @@ bool ShadowStackGCLowering::runOnFunction(Function &F) {
|
|||
if (Roots.empty())
|
||||
return false;
|
||||
|
||||
Optional<DomTreeUpdater> DTU;
|
||||
std::optional<DomTreeUpdater> DTU;
|
||||
if (auto *DTWP = getAnalysisIfAvailable<DominatorTreeWrapperPass>())
|
||||
DTU.emplace(DTWP->getDomTree(), DomTreeUpdater::UpdateStrategy::Lazy);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user