diff --git a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp index af1f0aeb27ba57..ded7c48fd21b71 100644 --- a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp +++ b/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp @@ -388,10 +388,8 @@ negativeOffsetOpcode(unsigned opcode) return opcode; default: - break; + llvm_unreachable("unknown thumb2 opcode."); } - - return 0; } static unsigned @@ -420,10 +418,8 @@ positiveOffsetOpcode(unsigned opcode) return opcode; default: - break; + llvm_unreachable("unknown thumb2 opcode."); } - - return 0; } static unsigned @@ -461,10 +457,8 @@ immediateOffsetOpcode(unsigned opcode) return opcode; default: - break; + llvm_unreachable("unknown thumb2 opcode."); } - - return 0; } bool llvm::rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,