From: Simon Pilgrim Date: Tue, 3 Feb 2015 22:39:28 +0000 (+0000) Subject: Fixed unused variable warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae43f39965ecc02f97ff00dd04d456c081fdc3ce;p=oota-llvm.git Fixed unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228054 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index ea6dcf51c63..c1aa49a8bae 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7818,7 +7818,6 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1, SDValue V2, ArrayRef Mask, SelectionDAG &DAG) { SmallBitVector Zeroable = computeZeroableShuffleElements(Mask, V1, V2); - const TargetLowering &TLI = DAG.getTargetLoweringInfo(); int Size = Mask.size(); assert(Size == VT.getVectorNumElements() && "Unexpected mask size"); @@ -7832,7 +7831,8 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1, auto MatchBitShift = [&](int Shift, int Scale) -> SDValue { MVT ShiftSVT = MVT::getIntegerVT(VT.getScalarSizeInBits() * Scale); MVT ShiftVT = MVT::getVectorVT(ShiftSVT, Size / Scale); - assert(TLI.isTypeLegal(ShiftVT) && "Illegal integer vector type"); + assert(DAG.getTargetLoweringInfo().isTypeLegal(ShiftVT) && + "Illegal integer vector type"); bool MatchLeft = true, MatchRight = true; for (int i = 0; i != Size; i += Scale) {