@@ -161,7 +161,7 @@ TEST_F(VFABIParserTest, ParamListParsing) {
161161 Type::getVoidTy (Ctx),
162162 {VectorType::get (Type::getInt32Ty (Ctx), ElementCount::getFixed (2 )),
163163 Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
164- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx)},
164+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx)},
165165 false );
166166 EXPECT_EQ (getFunctionType (), FTy);
167167 EXPECT_EQ (Parameters.size (), (unsigned )5 );
@@ -225,11 +225,11 @@ TEST_F(VFABIParserTest, Parse) {
225225 Type::getInt32Ty (Ctx),
226226 Type::getInt32Ty (Ctx),
227227 Type::getInt32Ty (Ctx),
228- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
228+ PointerType::getUnqual (Ctx),
229229 Type::getInt32Ty (Ctx),
230230 Type::getInt32Ty (Ctx),
231231 Type::getInt32Ty (Ctx),
232- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
232+ PointerType::getUnqual (Ctx),
233233 },
234234 false );
235235 EXPECT_EQ (getFunctionType (), FTy);
@@ -265,11 +265,11 @@ TEST_F(VFABIParserTest, LinearWithCompileTimeNegativeStep) {
265265 " void(i32, i32, i32, ptr)" ));
266266 EXPECT_EQ (ISA, VFISAKind::AdvancedSIMD);
267267 EXPECT_FALSE (isMasked ());
268- FunctionType *FTy = FunctionType::get (
269- Type::getVoidTy (Ctx),
270- { Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
271- Type::getInt32Ty (Ctx)-> getPointerTo ( )},
272- false );
268+ FunctionType *FTy =
269+ FunctionType::get ( Type::getVoidTy (Ctx),
270+ { Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
271+ Type::getInt32Ty (Ctx), PointerType::getUnqual (Ctx )},
272+ false );
273273 EXPECT_EQ (getFunctionType (), FTy);
274274 EXPECT_EQ (VF, ElementCount::getFixed (2 ));
275275 EXPECT_EQ (Parameters.size (), (unsigned )4 );
@@ -332,13 +332,13 @@ TEST_F(VFABIParserTest, LinearWithoutCompileTime) {
332332 " void(i32, i32, ptr, i32, i32, i32, ptr, i32)" ));
333333 EXPECT_EQ (ISA, VFISAKind::AdvancedSIMD);
334334 EXPECT_FALSE (isMasked ());
335- FunctionType *FTy = FunctionType::get (
336- Type::getVoidTy (Ctx),
337- {Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
338- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx),
339- Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
340- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx)},
341- false );
335+ FunctionType *FTy =
336+ FunctionType::get ( Type::getVoidTy (Ctx),
337+ {Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
338+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx),
339+ Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
340+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx)},
341+ false );
342342 EXPECT_EQ (getFunctionType (), FTy);
343343 EXPECT_EQ (Parameters.size (), (unsigned )8 );
344344 EXPECT_EQ (Parameters[0 ], VFParameter ({0 , VFParamKind::OMP_Linear, 1 }));
@@ -423,7 +423,7 @@ TEST_F(VFABIParserTest, ISAIndependentMangling) {
423423 Type::getVoidTy (Ctx),
424424 {VectorType::get (Type::getInt32Ty (Ctx), ElementCount::getFixed (2 )),
425425 Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
426- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx),
426+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx),
427427 Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
428428 Type::getInt32Ty (Ctx)},
429429 false );
@@ -692,8 +692,8 @@ TEST_F(VFABIParserTest, ParseScalableMaskingSVESincos) {
692692 Type::getVoidTy (Ctx),
693693 {
694694 VectorType::get (Type::getDoubleTy (Ctx), ElementCount::getScalable (2 )),
695- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
696- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
695+ PointerType::getUnqual (Ctx),
696+ PointerType::getUnqual (Ctx),
697697 VectorType::get (Type::getInt1Ty (Ctx), ElementCount::getScalable (2 )),
698698 },
699699 false );
0 commit comments