diff --git a/llvm/unittests/ADT/RangeAdapterTest.cpp b/llvm/unittests/ADT/RangeAdapterTest.cpp --- a/llvm/unittests/ADT/RangeAdapterTest.cpp +++ b/llvm/unittests/ADT/RangeAdapterTest.cpp @@ -157,14 +157,12 @@ TYPED_TEST(RangeAdapterRValueTest, RangeType) { static_assert( - std::is_same< - decltype(reverse(*static_cast(nullptr)).begin()), - decltype(static_cast(nullptr)->rbegin())>::value, + std::is_same_v()).begin()), + decltype(std::declval().rbegin())>, "reverse().begin() should have the same type as rbegin()"); static_assert( - std::is_same< - decltype(reverse(*static_cast(nullptr)).begin()), - decltype(static_cast(nullptr)->rbegin())>::value, + std::is_same_v()).begin()), + decltype(std::declval().rbegin())>, "reverse().begin() should have the same type as rbegin() [const]"); }