Skip to content

Commit fd463cf

Browse files
committed
fixup! return false for unknown entry kind
1 parent 2f83efb commit fd463cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ bool RISCVLegalizerInfo::legalizeBRJT(MachineInstr &MI,
345345
Register TargetReg;
346346
switch (MJTI->getEntryKind()) {
347347
default:
348-
llvm_unreachable("Unexpected jumptable entry kind");
348+
return false;
349349
case MachineJumpTableInfo::EK_LabelDifference32: {
350350
// For PIC, the sequence is:
351351
// BRIND(load(Jumptable + index) + RelocBase)

0 commit comments

Comments
 (0)