Skip to content

Commit 0fb6c9c

Browse files
committed
Review feedback
1 parent fcb1b70 commit 0fb6c9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/MC/MCCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ void MCCodeEmitter::reportUnsupportedOperand(const MCInst &Inst,
2929
unsigned OpNum) {
3030
std::string Msg;
3131
raw_string_ostream OS(Msg);
32-
OS << "Unsupported instruction/operand : \"" << Inst << "\"[" << OpNum << "]";
32+
OS << "Unsupported instruction operand : \"" << Inst << "\"[" << OpNum << "]";
3333
reportFatalInternalError(Msg.c_str());
3434
}

llvm/utils/TableGen/CodeEmitterGen.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ void CodeEmitterGen::run(raw_ostream &O) {
514514
<< " const MCSubtargetInfo &STI) const {\n"
515515
<< " switch (MI.getOpcode()) {\n";
516516
emitCaseMap(O, BitOffsetCaseMap);
517-
O << " }\n"
517+
O << " default:\n"
518+
<< " reportUnsupportedInst(MI);\n"
519+
<< " }\n"
518520
<< " reportUnsupportedOperand(MI, OpNum);\n"
519521
<< "}\n\n"
520522
<< "#endif // GET_OPERAND_BIT_OFFSET\n\n";

0 commit comments

Comments
 (0)