From ee77b73c433992717f20e95e10ece542e7726dcf Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 4 Dec 2022 15:05:22 -0800 Subject: [PATCH] [IR] Use std::nullopt instead of None (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/unittests/IR/VPIntrinsicTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/unittests/IR/VPIntrinsicTest.cpp b/llvm/unittests/IR/VPIntrinsicTest.cpp index 963b1a8..8d1f78d 100644 --- a/llvm/unittests/IR/VPIntrinsicTest.cpp +++ b/llvm/unittests/IR/VPIntrinsicTest.cpp @@ -162,7 +162,7 @@ TEST_F(VPIntrinsicTest, VPIntrinsicsDefScopes) { #define END_REGISTER_VP_INTRINSIC(VPID) \ ASSERT_TRUE(ScopeVPID.has_value()); \ ASSERT_EQ(ScopeVPID.value(), Intrinsic::VPID); \ - ScopeVPID = None; + ScopeVPID = std::nullopt; Optional ScopeOPC; #define BEGIN_REGISTER_VP_SDNODE(SDOPC, ...) \ @@ -171,7 +171,7 @@ TEST_F(VPIntrinsicTest, VPIntrinsicsDefScopes) { #define END_REGISTER_VP_SDNODE(SDOPC) \ ASSERT_TRUE(ScopeOPC.has_value()); \ ASSERT_EQ(ScopeOPC.value(), ISD::SDOPC); \ - ScopeOPC = None; + ScopeOPC = std::nullopt; #include "llvm/IR/VPIntrinsics.def" ASSERT_FALSE(ScopeVPID.has_value()); -- 2.7.4