diff --git a/llvm/unittests/IR/VectorTypesTest.cpp b/llvm/unittests/IR/VectorTypesTest.cpp --- a/llvm/unittests/IR/VectorTypesTest.cpp +++ b/llvm/unittests/IR/VectorTypesTest.cpp @@ -257,7 +257,6 @@ 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);