From d7e503869521b47cf517ba7c2b50714f5299537f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 10 Dec 2022 10:22:11 -0800 Subject: [PATCH] [Presburger] Use std::optional in PresburgerRelation.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 --- mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp b/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp index 09710bd..37fdf38 100644 --- a/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp +++ b/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp @@ -12,6 +12,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/ADT/SmallBitVector.h" +#include using namespace mlir; using namespace presburger; @@ -212,7 +213,7 @@ static PresburgerRelation getSetDifference(IntegerRelation b, SmallVector ineqsToProcess; // The index of the last inequality that was processed at this level. // This is empty when we are coming to this level for the first time. - Optional lastIneqProcessed; + std::optional lastIneqProcessed; }; SmallVector frames; -- 2.7.4