diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-30 05:12:41 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-30 05:12:41 +0000 |
commit | ef550a6d013fcdb315e395daade1e0074fe97d31 (patch) | |
tree | 9897795e40e5ccad67ed69bc973e8eeaf2c215e5 /llvm/lib/Target | |
parent | f8222631a5036f5bb08aba9a8275732ca6924906 (diff) | |
download | bcm5719-llvm-ef550a6d013fcdb315e395daade1e0074fe97d31.tar.gz bcm5719-llvm-ef550a6d013fcdb315e395daade1e0074fe97d31.zip |
ARM: move llvm_unreachable use
When building with -Werror=covered-switch-default (as on the buildbots), the
build would fail since all cases are covered by the switch. Move the
llvm_unreachable to the end of the function as an annotation.
llvm-svn: 207609
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp index f9b612f5890..72a9b648dca 100644 --- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -620,7 +620,6 @@ static bool IsAnAddressOperand(const MachineOperand &MO) { // operand is not a symbol reference, we return that it is a symbol reference. // This is important as the load pair may not be split up Windows. switch (MO.getType()) { - default: llvm_unreachable("unhandled machine operand type"); case MachineOperand::MO_Register: case MachineOperand::MO_Immediate: case MachineOperand::MO_CImmediate: @@ -646,6 +645,7 @@ static bool IsAnAddressOperand(const MachineOperand &MO) { case MachineOperand::MO_CFIIndex: return false; } + llvm_unreachable("unhandled machine operand type"); } void ARMExpandPseudo::ExpandMOV32BitImm(MachineBasicBlock &MBB, |