[llvm] r251189 - Fix unused variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 06:41:45 PDT 2015
Author: rksimon
Date: Sat Oct 24 08:41:45 2015
New Revision: 251189
URL: http://llvm.org/viewvc/llvm-project?rev=251189&view=rev
Log:
Fix unused variable warning. NFC.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=251189&r1=251188&r2=251189&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 24 08:41:45 2015
@@ -18834,11 +18834,10 @@ static SDValue LowerRotate(SDValue Op, c
SDLoc DL(Op);
SDValue R = Op.getOperand(0);
SDValue Amt = Op.getOperand(1);
- unsigned Opc = Op.getOpcode();
assert(VT.isVector() && "Custom lowering only for vector rotates!");
assert(Subtarget->hasXOP() && "XOP support required for vector rotates!");
- assert((Opc == ISD::ROTL) && "Only ROTL supported");
+ assert((Op.getOpcode() == ISD::ROTL) && "Only ROTL supported");
// XOP has 128-bit vector variable + immediate rotates.
// +ve/-ve Amt = rotate left/right.
More information about the llvm-commits
mailing list