[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 14:56:04 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc17120a3a4c1: [SVE] Remove calls to VectorType::getNumElements from AsmParserTest (authored by ctetreau).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83339/new/

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.276227.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/cd2e061d/attachment.bin>


More information about the llvm-commits mailing list