From c3c0cd6049106406411a2bceaecb418f62da789a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Nov 2022 11:49:01 -0800 Subject: [PATCH] [Analysis] Use std::optional in DemandedBits.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/DemandedBits.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/DemandedBits.h b/llvm/include/llvm/Analysis/DemandedBits.h index 5a68fcb..d5623b7 100644 --- a/llvm/include/llvm/Analysis/DemandedBits.h +++ b/llvm/include/llvm/Analysis/DemandedBits.h @@ -27,6 +27,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" +#include namespace llvm { @@ -101,7 +102,7 @@ private: class DemandedBitsWrapperPass : public FunctionPass { private: - mutable Optional DB; + mutable std::optional DB; public: static char ID; // Pass identification, replacement for typeid -- 2.7.4