[PATCH] D83339: [SVE] Remove calls to VectorType::getNumElements from AsmParserTest
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 13:07:06 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, psnobl, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83339
Files:
llvm/unittests/AsmParser/AsmParserTest.cpp
Index: llvm/unittests/AsmParser/AsmParserTest.cpp
===================================================================
--- llvm/unittests/AsmParser/AsmParserTest.cpp
+++ llvm/unittests/AsmParser/AsmParserTest.cpp
@@ -230,7 +230,7 @@
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 @@
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();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83339.276189.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/3e3a70c1/attachment.bin>
More information about the llvm-commits
mailing list