From: Farhana Aleen Date: Thu, 22 Jun 2017 23:56:31 +0000 (+0000) Subject: Fixed a (product) build error that was due to an unused variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d5a52ac18565429677022d6a20ead339db9687;p=llvm Fixed a (product) build error that was due to an unused variable Details: There was a use but it was in the assert which was not exercised during product build. Reviewers: Andrew Kaylor Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32658 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306073 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InterleavedAccess.cpp b/lib/Target/X86/X86InterleavedAccess.cpp index 7bc5c6b875b..f0ed4bc16e2 100644 --- a/lib/Target/X86/X86InterleavedAccess.cpp +++ b/lib/Target/X86/X86InterleavedAccess.cpp @@ -264,8 +264,7 @@ bool X86TargetLowering::lowerInterleavedStore(StoreInst *SI, assert(Factor >= 2 && Factor <= getMaxSupportedInterleaveFactor() && "Invalid interleave factor"); - VectorType *VecTy = SVI->getType(); - assert(VecTy->getVectorNumElements() % Factor == 0 && + assert(SVI->getType()->getVectorNumElements() % Factor == 0 && "Invalid interleaved store"); // Holds the indices of SVI that correspond to the starting index of each