diff --git a/llvm/unittests/IR/VectorTypesTest.cpp b/llvm/unittests/IR/VectorTypesTest.cpp index 821b73aa04f4b2..b55ea57ba502da 100644 --- a/llvm/unittests/IR/VectorTypesTest.cpp +++ b/llvm/unittests/IR/VectorTypesTest.cpp @@ -257,7 +257,6 @@ TEST(VectorTypesTest, BaseVectorType) { for (size_t J = I + 1, JEnd = VTys.size(); J < JEnd; ++J) { // test I < J VectorType *VJ = VTys[J]; - ElementCount ECJ = VJ->getElementCount(); EXPECT_VTY_NE(VI, VJ); VectorType *VJPrime = VectorType::get(VI->getElementType(), VJ);