Skip to content

Commit b6249ba

Browse files
[TableGen] Remove an unnecessary cast (NFC) (llvm#147454)
parent is already of InstructionContext.
1 parent 778c2a5 commit b6249ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/utils/TableGen/X86DisassemblerTables.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,7 @@ static inline bool inheritsFrom(InstructionContext child,
603603
case IC_EVEX_W_OPSIZE_KZ_B_U:
604604
return false;
605605
default:
606-
errs() << "Unknown instruction class: "
607-
<< stringForContext((InstructionContext)parent) << "\n";
606+
errs() << "Unknown instruction class: " << stringForContext(parent) << "\n";
608607
llvm_unreachable("Unknown instruction class");
609608
}
610609
}

0 commit comments

Comments
 (0)