diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 |
commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /llvm/lib/Analysis/LoopAnalysisManager.cpp | |
parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) |
Diffstat (limited to 'llvm/lib/Analysis/LoopAnalysisManager.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAnalysisManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAnalysisManager.cpp b/llvm/lib/Analysis/LoopAnalysisManager.cpp index 8d71b31ca393..74b1da86eb28 100644 --- a/llvm/lib/Analysis/LoopAnalysisManager.cpp +++ b/llvm/lib/Analysis/LoopAnalysisManager.cpp @@ -13,6 +13,7 @@ #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/PassManagerImpl.h" +#include <optional> using namespace llvm; @@ -90,7 +91,7 @@ bool LoopAnalysisManagerFunctionProxy::Result::invalidate( // cache and so we walk the preorder list in reverse to form a valid // postorder. for (Loop *L : reverse(PreOrderLoops)) { - Optional<PreservedAnalyses> InnerPA; + std::optional<PreservedAnalyses> InnerPA; // Check to see whether the preserved set needs to be adjusted based on // function-level analysis invalidation triggering deferred invalidation |