From a5ef7bb5c137529573f626cfe80764db90c1ed98 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 26 Nov 2022 15:07:23 -0800 Subject: [PATCH] [SelectionDAG] Use std::optional in SelectionDAGISel.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 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5dd6cc6..30fab77 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -102,6 +102,7 @@ #include #include #include +#include #include #include #include @@ -2263,7 +2264,7 @@ void SelectionDAGISel::Select_PATCHPOINT(SDNode *N) { // Cache arguments that will be moved to the end in the target node. SDValue Chain = *It++; - Optional Glue; + std::optional Glue; if (It->getValueType() == MVT::Glue) Glue = *It++; SDValue RegMask = *It++; -- 2.7.4