Skip to content

Commit 636269f

Browse files
[CodeGen] Fix a warning
This patch fixes: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3540:9: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent 1cfcc36 commit 636269f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3537,8 +3537,6 @@ void CodeViewDebug::collectDebugInfoForJumpTables(const MachineFunction *MF,
35373537
std::tie(Base, BaseOffset, Branch, EntrySize) =
35383538
Asm->getCodeViewJumpTableInfo(JumpTableIndex, &BranchMI, Branch);
35393539
break;
3540-
default:
3541-
llvm_unreachable("Unknown JumpTableEntryKind");
35423540
}
35433541

35443542
CurFn->JumpTables.push_back(

0 commit comments

Comments
 (0)