[llvm] r306073 - Fixed a (product) build error that was due to an unused variable
Farhana Aleen via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 16:56:31 PDT 2017
Author: faaleen
Date: Thu Jun 22 18:56:31 2017
New Revision: 306073
URL: http://llvm.org/viewvc/llvm-project?rev=306073&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/X86/X86InterleavedAccess.cpp
Modified: llvm/trunk/lib/Target/X86/X86InterleavedAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InterleavedAccess.cpp?rev=306073&r1=306072&r2=306073&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InterleavedAccess.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InterleavedAccess.cpp Thu Jun 22 18:56:31 2017
@@ -264,8 +264,7 @@ bool X86TargetLowering::lowerInterleaved
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
More information about the llvm-commits
mailing list