aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-04 16:46:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-04 16:46:12 +0000
commit1f2eea761cc95baeb75a535d8f29cf3798f0c023 (patch)
tree45cb1e77783cce3caa484dc0480171ce59cc8d19 /lib/Target/PIC16
parent01567a8abb9862dfaf9b516a3f7fa7688d08eb65 (diff)
downloadexternal_llvm-1f2eea761cc95baeb75a535d8f29cf3798f0c023.zip
external_llvm-1f2eea761cc95baeb75a535d8f29cf3798f0c023.tar.gz
external_llvm-1f2eea761cc95baeb75a535d8f29cf3798f0c023.tar.bz2
Avoid compiler warning (in -Asserts mode)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r--lib/Target/PIC16/PIC16ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PIC16/PIC16ISelLowering.cpp b/lib/Target/PIC16/PIC16ISelLowering.cpp
index 87379a6..d627cbc 100644
--- a/lib/Target/PIC16/PIC16ISelLowering.cpp
+++ b/lib/Target/PIC16/PIC16ISelLowering.cpp
@@ -1616,6 +1616,8 @@ SDValue PIC16TargetLowering::LowerSUB(SDValue Op, SelectionDAG &DAG) {
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 @@ SDValue PIC16TargetLowering::LowerSUB(SDValue Op, SelectionDAG &DAG) {
case ISD::SUB:
return DAG.getNode(Op.getOpcode(), dl, MVT::i8, NewVal, Op.getOperand(1));
break;
- default:
- assert (0 && "Opcode unknown.");
}
}