projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec40975
)
Avoid compiler warning (in -Asserts mode)
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 4 Aug 2009 16:46:12 +0000
(16:46 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 4 Aug 2009 16:46:12 +0000
(16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78070
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PIC16/PIC16ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PIC16/PIC16ISelLowering.cpp
b/lib/Target/PIC16/PIC16ISelLowering.cpp
index 87379a691ed1ef548f067049ca437b5686beadbe..d627cbc22ca42b4b384231729a1738691b4d0b8b 100644
(file)
--- 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.");
}
}