summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-07-17 12:25:14 +0000
committerDuncan Sands <baldrick@free.fr>2009-07-17 12:25:14 +0000
commit35e95639c0c03ab6fd2cc318f18cb42945c90448 (patch)
treee1098f2fc9ed8991326095421927cbafa2fe020c /llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
parent520024b465adfded67b5fabd0346242cc43ebd11 (diff)
downloadbcm5719-llvm-35e95639c0c03ab6fd2cc318f18cb42945c90448.tar.gz
bcm5719-llvm-35e95639c0c03ab6fd2cc318f18cb42945c90448.zip
Avoid a compiler warning when assertions are turned off.
llvm-svn: 76176
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index b184a982bf6..27bd47dc08b 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -648,6 +648,8 @@ SystemZInstrInfo::getOppositeCondition(SystemZCC::CondCodes CC) const {
const TargetInstrDesc&
SystemZInstrInfo::getLongDispOpc(unsigned Opc) const {
switch (Opc) {
+ default:
+ assert(0 && "Don't have long disp version of this instruction");
case SystemZ::MOV32mr: return get(SystemZ::MOV32mry);
case SystemZ::MOV32rm: return get(SystemZ::MOV32rmy);
case SystemZ::MOVSX32rm16: return get(SystemZ::MOVSX32rm16y);
@@ -666,8 +668,5 @@ SystemZInstrInfo::getLongDispOpc(unsigned Opc) const {
case SystemZ::FMOV64rm: return get(SystemZ::FMOV64rmy);
case SystemZ::MOV64Pmr: return get(SystemZ::MOV64Pmry);
case SystemZ::MOV64Prm: return get(SystemZ::MOV64Prmy);
- default:
- assert(0 && "Don't have long disp version of this instruction");
}
}
-
OpenPOWER on IntegriCloud