aboutsummaryrefslogtreecommitdiff
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
commit3e11988c42338751f3712b51a6f4d64362719711 (patch)
treedf11e35045cce7d5a5b3053d615a7e744f55d19c
parentcbc6da628a9ab02305b1c12d5720d81b9d6b331f (diff)
Avoid a compiler warning when assertions are turned off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp
index b184a982bf..27bd47dc08 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/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");
}
}
-