[llvm] r261371 - [X86ISelLowering] Provide a more informative assert message.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 19 14:18:49 PST 2016
Author: davide
Date: Fri Feb 19 16:18:49 2016
New Revision: 261371
URL: http://llvm.org/viewvc/llvm-project?rev=261371&view=rev
Log:
[X86ISelLowering] Provide a more informative assert message.
I stumbled upon this while debugging a lowering bug.
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=261371&r1=261370&r2=261371&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Feb 19 16:18:49 2016
@@ -16567,7 +16567,7 @@ static SDValue getTargetVShiftByConstNod
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);
More information about the llvm-commits
mailing list