From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/CodeGen/SafeStack.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SafeStack.cpp') diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp index 00a551ade213..bcad7a3f24da 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 @@ -907,7 +908,7 @@ public: } else { // Otherwise, we need to compute it. LazilyComputedDomTree.emplace(F); - DT = LazilyComputedDomTree.getPointer(); + DT = &*LazilyComputedDomTree; ShouldPreserveDominatorTree = false; } -- cgit v1.3