[llvm-commits] [llvm] r76176 - /llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
Duncan Sands
baldrick at free.fr
Fri Jul 17 05:26:47 PDT 2009
Author: baldrick
Date: Fri Jul 17 07:25:14 2009
New Revision: 76176
URL: http://llvm.org/viewvc/llvm-project?rev=76176&view=rev
Log:
Avoid a compiler warning when assertions are turned off.
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp?rev=76176&r1=76175&r2=76176&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp Fri Jul 17 07:25:14 2009
@@ -648,6 +648,8 @@
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 @@
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");
}
}
-
More information about the llvm-commits
mailing list