]> granicus.if.org Git - llvm/commitdiff
Fixed a (product) build error that was due to an unused variable
authorFarhana Aleen <farhana.a.aleen@intel.com>
Thu, 22 Jun 2017 23:56:31 +0000 (23:56 +0000)
committerFarhana Aleen <farhana.a.aleen@intel.com>
Thu, 22 Jun 2017 23:56:31 +0000 (23:56 +0000)
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

lib/Target/X86/X86InterleavedAccess.cpp

index 7bc5c6b875b00928d5e43cc296ab332374c6a542..f0ed4bc16e2f94fbfb84d1ba3b0409c445fefa02 100644 (file)
@@ -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