llvm.org GIT mirror llvm / 38bd5c4
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207609 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
619619 // operand is not a symbol reference, we return that it is a symbol reference.
620620 // This is important as the load pair may not be split up Windows.
621621 switch (MO.getType()) {
622 default: llvm_unreachable("unhandled machine operand type");
623622 case MachineOperand::MO_Register:
624623 case MachineOperand::MO_Immediate:
625624 case MachineOperand::MO_CImmediate:
645644 case MachineOperand::MO_CFIIndex:
646645 return false;
647646 }
647 llvm_unreachable("unhandled machine operand type");
648648 }
650650 void ARMExpandPseudo::ExpandMOV32BitImm(MachineBasicBlock &MBB,