Fix MSVC "switch statement contains 'default' but no 'case' labels" warning. NFCI.

This commit is contained in:
Simon Pilgrim 2021-03-15 09:45:45 +00:00
parent 6878be5dc3
commit 70ee8dc0b6
1 changed files with 2 additions and 5 deletions

View File

@ -134,11 +134,8 @@ static unsigned getRelaxedOpcodeBranch(const MCInst &Inst) {
static unsigned getRelaxedOpcodeArith(const MCInst &Inst) {
unsigned Op = Inst.getOpcode();
switch (Op) {
default:
return Op;
// NOTE there will be some relaxations for PCD and ARD mem for x20
}
return Op;
}
static unsigned getRelaxedOpcode(const MCInst &Inst) {