X86ShuffleDecode.cpp: Silence a warning. [-Wunused-variable]

llvm-svn: 214016
This commit is contained in:
NAKAMURA Takumi 2014-07-26 04:53:05 +00:00
parent f2df3f59fb
commit 1fa7769ba9
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ void DecodePSHUFBMask(const ConstantDataSequential *C,
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) &&