From d1925fa27a379ea7cf9625e62f98af967c7bae3c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Nov 2022 11:48:58 -0800 Subject: [PATCH] [Analysis] Use std::optional in BasicAliasAnalysis.h (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/include/llvm/Analysis/BasicAliasAnalysis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h index f3c80c6..77c4e47 100644 --- a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h +++ b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h @@ -19,6 +19,7 @@ #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" #include +#include #include namespace llvm { @@ -187,8 +188,8 @@ BasicAAResult createLegacyPMBasicAAResult(Pass &P, Function &F); /// they live long enough to be queried, but we re-use them each time. class LegacyAARGetter { Pass &P; - Optional BAR; - Optional AAR; + std::optional BAR; + std::optional AAR; public: LegacyAARGetter(Pass &P) : P(P) {} -- 2.7.4