[llvm] r214016 - X86ShuffleDecode.cpp: Silence a warning. [-Wunused-variable]
NAKAMURA Takumi
geek4civic at gmail.com
Fri Jul 25 21:53:05 PDT 2014
Author: chapuni
Date: Fri Jul 25 23:53:05 2014
New Revision: 214016
URL: http://llvm.org/viewvc/llvm-project?rev=214016&view=rev
Log:
X86ShuffleDecode.cpp: Silence a warning. [-Wunused-variable]
Modified:
llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
Modified: llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp?rev=214016&r1=214015&r2=214016&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp (original)
+++ llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp Fri Jul 25 23:53:05 2014
@@ -213,8 +213,8 @@ void DecodePSHUFBMask(const ConstantData
SmallVectorImpl<int> &ShuffleMask) {
Type *MaskTy = C->getType();
assert(MaskTy->isVectorTy() && "Expected a vector constant mask!");
- Type *EltTy = MaskTy->getVectorElementType();
- assert(EltTy->isIntegerTy(8) && "Expected i8 constant mask elements!");
+ assert(MaskTy->getVectorElementType()->isIntegerTy(8) &&
+ "Expected i8 constant mask elements!");
int NumElements = MaskTy->getVectorNumElements();
// FIXME: Add support for AVX-512.
assert((NumElements == 16 || NumElements == 32) &&
More information about the llvm-commits
mailing list