diff --git a/unittests/AsmParser/AsmParserTest.cpp b/unittests/AsmParser/AsmParserTest.cpp index 198191bf435..9a7d70ad1ed 100644 --- a/unittests/AsmParser/AsmParserTest.cpp +++ b/unittests/AsmParser/AsmParserTest.cpp @@ -230,7 +230,7 @@ TEST(AsmParserTest, TypeWithSlotMappingParsing) { ASSERT_TRUE(Ty->isVectorTy()); // Check the details of the vector. - VectorType *VT = cast(Ty); + auto *VT = cast(Ty); ASSERT_TRUE(VT->getNumElements() == 5); ASSERT_TRUE(VT->getPrimitiveSizeInBits().getFixedSize() == 160); Ty = VT->getElementType(); @@ -362,7 +362,7 @@ TEST(AsmParserTest, TypeAtBeginningWithSlotMappingParsing) { ASSERT_TRUE(Read == 9); // Check the details of the vector. - VectorType *VT = cast(Ty); + auto *VT = cast(Ty); ASSERT_TRUE(VT->getNumElements() == 5); ASSERT_TRUE(VT->getPrimitiveSizeInBits().getFixedSize() == 160); Ty = VT->getElementType();