Skip to content

Commit 3d764e7

Browse files
Add a comment.
1 parent b84a97c commit 3d764e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/unittests/ADT/DenseMapTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ TYPED_TEST(DenseMapTest, ConstIteratorTest) {
387387
EXPECT_TRUE(cit == cit2);
388388
}
389389

390+
// TYPED_TEST below cycles through different types. We define UniversalSmallSet
391+
// here so that we'll use SmallSet or SmallPtrSet depending on whether the
392+
// element type is a pointer.
390393
template <typename T, unsigned N>
391394
using UniversalSmallSet =
392395
std::conditional_t<std::is_pointer_v<T>, SmallPtrSet<T, N>, SmallSet<T, N>>;

0 commit comments

Comments
 (0)