[X86ISelLowering] Provide a more informative assert message.

I stumbled upon this while debugging a lowering bug.

llvm-svn: 261371
This commit is contained in:
Davide Italiano 2016-02-19 22:18:49 +00:00
parent 4cfe2a9e38
commit a8f1f2efaf

View File

@ -16567,7 +16567,7 @@ static SDValue getTargetVShiftByConstNode(unsigned Opc, SDLoc dl, MVT VT,
ConstantSDNode *ND;
switch(Opc) {
default: llvm_unreachable(nullptr);
default: llvm_unreachable("Unknown opcode!");
case X86ISD::VSHLI:
for (unsigned i=0; i!=NumElts; ++i) {
SDValue CurrentOp = SrcOp->getOperand(i);