From d152e50c15416c61220f218039c70f0c814e5651 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 25 Jun 2022 11:24:23 -0700 Subject: [llvm] Don't use Optional::{hasValue,getValue} (NFC) --- llvm/unittests/Support/Casting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/Support/Casting.cpp') diff --git a/llvm/unittests/Support/Casting.cpp b/llvm/unittests/Support/Casting.cpp index 93a5e67..311fefd 100644 --- a/llvm/unittests/Support/Casting.cpp +++ b/llvm/unittests/Support/Casting.cpp @@ -236,7 +236,7 @@ TEST(CastingTest, dyn_cast_or_null) { TEST(CastingTest, dyn_cast_value_types) { T1 t1; Optional t2 = dyn_cast(t1); - EXPECT_TRUE(t2.hasValue()); + EXPECT_TRUE(t2); T2 *t2ptr = dyn_cast(&t1); EXPECT_TRUE(t2ptr != nullptr); -- cgit v1.1