[llvm-commits] [llvm] r78070 - /llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp
Daniel Dunbar
daniel at zuster.org
Tue Aug 4 09:46:39 PDT 2009
Author: ddunbar
Date: Tue Aug 4 11:46:12 2009
New Revision: 78070
URL: http://llvm.org/viewvc/llvm-project?rev=78070&view=rev
Log:
Avoid compiler warning (in -Asserts mode)
Modified:
llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp
Modified: llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp?rev=78070&r1=78069&r2=78070&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp Tue Aug 4 11:46:12 2009
@@ -1616,6 +1616,8 @@
SDVTList Tys = DAG.getVTList(MVT::i8, MVT::Flag);
switch (Op.getOpcode()) {
+ default:
+ assert (0 && "Opcode unknown.");
case ISD::SUBE:
return DAG.getNode(Op.getOpcode(), dl, Tys, NewVal, Op.getOperand(1),
Op.getOperand(2));
@@ -1626,8 +1628,6 @@
case ISD::SUB:
return DAG.getNode(Op.getOpcode(), dl, MVT::i8, NewVal, Op.getOperand(1));
break;
- default:
- assert (0 && "Opcode unknown.");
}
}
More information about the llvm-commits
mailing list