Skip to content

Commit d050e45

Browse files
committed
[ADT] Remove MSVC-only "no two-phase name lookup" typename path.
Now that we've dropped VS2015 support (D64326) we can use the regular codepath as VS2017+ correctly handles it llvm-svn: 365502
1 parent e625eb9 commit d050e45

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/unittests/ADT/DenseMapTest.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,8 @@ TYPED_TEST(DenseMapTest, EmptyIntMapTest) {
119119
// Lookup tests
120120
EXPECT_FALSE(this->Map.count(this->getKey()));
121121
EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end());
122-
#if !defined(_MSC_VER) || defined(__clang__)
123122
EXPECT_EQ(typename TypeParam::mapped_type(),
124123
this->Map.lookup(this->getKey()));
125-
#else
126-
// MSVC, at least old versions, cannot parse the typename to disambiguate
127-
// TypeParam::mapped_type as a type. However, because MSVC doesn't implement
128-
// two-phase name lookup, it also doesn't require the typename. Deal with
129-
// this mutual incompatibility through specialized code.
130-
EXPECT_EQ(TypeParam::mapped_type(),
131-
this->Map.lookup(this->getKey()));
132-
#endif
133124
}
134125

135126
// Constant map tests

0 commit comments

Comments
 (0)