From fa8fe224063b67ab3cbe1e7cb06ba60db9632d37 Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Tue, 7 Jul 2020 14:44:40 -0700 Subject: [PATCH] [SVE] Remove calls to VectorType::getNumElements from AsmParserTest Reviewers: efriedma, c-rhodes, david-arm, kmclaughlin, fpetrogalli, sdesmalen Reviewed By: efriedma Subscribers: tschuett, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83339 --- unittests/AsmParser/AsmParserTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();