Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/AsmMatcherEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2522,9 +2522,9 @@ static void emitValidateOperandClass(const CodeGenTarget &Target,
for (auto &MatchClassName : Table)
OS << " " << MatchClassName << ",\n";
OS << " };\n\n";
OS << " auto RegID=Operand.getReg().id();\n";
OS << " MatchClassKind OpKind = MCRegister::isPhysicalRegister(RegID)?"
"(MatchClassKind)Table[RegID]: InvalidMatchClass;\n";
OS << " unsigned RegID=Operand.getReg().id();\n";
OS << " MatchClassKind OpKind = MCRegister::isPhysicalRegister(RegID) ? "
"(MatchClassKind)Table[RegID] : InvalidMatchClass;\n";
OS << " return isSubclass(OpKind, Kind) ? "
<< "(unsigned)MCTargetAsmParser::Match_Success :\n "
<< " getDiagKindFromRegisterClass(Kind);\n }\n\n";
Expand Down