From 09ed8161745b42740fa4c24f715655783233a544 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 26 Jul 2014 04:53:05 +0000 Subject: [PATCH] X86ShuffleDecode.cpp: Silence a warning. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214016 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/Utils/X86ShuffleDecode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/lib/Target/X86/Utils/X86ShuffleDecode.cpp index 869ef0ee43e..ff8382d5f01 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/lib/Target/X86/Utils/X86ShuffleDecode.cpp @@ -213,8 +213,8 @@ void DecodePSHUFBMask(const ConstantDataSequential *C, SmallVectorImpl &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) &&