@@ -19,7 +19,7 @@ using namespace swift;
19
19
20
20
TEST (ImmutableSortedSet, OneElementSets) {
21
21
llvm::BumpPtrAllocator BPA;
22
- ImmutablePointerSetFactory<unsigned > F (BPA);
22
+ ImmutablePointerSetFactory<unsigned * > F (BPA);
23
23
24
24
unsigned *ptr1 = (unsigned *)3 ;
25
25
auto *OneEltSet1 = F.get (ptr1);
@@ -54,16 +54,16 @@ TEST(ImmutableSortedSet, OneElementSets) {
54
54
55
55
TEST (ImmutablePointerSet, MultipleElementSets) {
56
56
llvm::BumpPtrAllocator BPA;
57
- ImmutablePointerSetFactory<unsigned > F (BPA);
57
+ ImmutablePointerSetFactory<unsigned * > F (BPA);
58
58
59
59
unsigned *Ptr1 = (unsigned *)3 ;
60
60
unsigned *Ptr2 = (unsigned *)4 ;
61
61
unsigned *Ptr3 = (unsigned *)3 ;
62
62
unsigned *Ptr4 = (unsigned *)5 ;
63
63
unsigned *Ptr5 = (unsigned *)6 ;
64
64
llvm::SmallVector<unsigned *, 2 > Data1 = {Ptr1, Ptr2};
65
-
66
- auto *TwoEltSet = F.get (Data1 );
65
+ llvm::MutableArrayRef< unsigned *> Array = Data1;
66
+ auto *TwoEltSet = F.get (Array );
67
67
EXPECT_FALSE (TwoEltSet->empty ());
68
68
EXPECT_EQ (TwoEltSet->size (), 2u );
69
69
EXPECT_TRUE (TwoEltSet->count (Ptr1));
@@ -110,7 +110,7 @@ TEST(ImmutablePointerSet, MultipleElementSets) {
110
110
111
111
TEST (ImmutablePointerSet, EmptyIntersectionTests) {
112
112
llvm::BumpPtrAllocator BPA;
113
- ImmutablePointerSetFactory<unsigned > F (BPA);
113
+ ImmutablePointerSetFactory<unsigned * > F (BPA);
114
114
115
115
unsigned *Ptr1 = (unsigned *)3 ;
116
116
unsigned *Ptr2 = (unsigned *)4 ;
0 commit comments