[llvm] c17120a - [SVE] Remove calls to VectorType::getNumElements from AsmParserTest
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 14:56:02 PDT 2020
Author: Christopher Tetreault
Date: 2020-07-07T14:55:42-07:00
New Revision: c17120a3a4c14940982320beafa455437d60d170
URL: https://github.com/llvm/llvm-project/commit/c17120a3a4c14940982320beafa455437d60d170
DIFF: https://github.com/llvm/llvm-project/commit/c17120a3a4c14940982320beafa455437d60d170.diff
LOG: [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
Added:
Modified:
llvm/unittests/AsmParser/AsmParserTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/AsmParser/AsmParserTest.cpp b/llvm/unittests/AsmParser/AsmParserTest.cpp
index 198191bf435f..9a7d70ad1ed0 100644
--- a/llvm/unittests/AsmParser/AsmParserTest.cpp
+++ b/llvm/unittests/AsmParser/AsmParserTest.cpp
@@ -230,7 +230,7 @@ TEST(AsmParserTest, TypeWithSlotMappingParsing) {
ASSERT_TRUE(Ty->isVectorTy());
// Check the details of the vector.
- VectorType *VT = cast<VectorType>(Ty);
+ auto *VT = cast<FixedVectorType>(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<VectorType>(Ty);
+ auto *VT = cast<FixedVectorType>(Ty);
ASSERT_TRUE(VT->getNumElements() == 5);
ASSERT_TRUE(VT->getPrimitiveSizeInBits().getFixedSize() == 160);
Ty = VT->getElementType();
More information about the llvm-commits
mailing list