Skip to content

Commit

Permalink
Add companion commit for capstone-engine/capstone#2253
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jan 25, 2024
1 parent e262ab6 commit e34a69a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/TableGen/PrinterCapstone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1420,8 +1420,8 @@ void PrinterCapstone::asmWriterEmitPrintInstruction(
// Emit a single possibility.
OS << translateToC(TargetName, Commands[0]) << "\n\n";
} else {
OS << " switch ((Bits >> " << (OpcodeInfoBits - BitsLeft) << ") & "
<< ((1 << NumBits) - 1) << ") {\n"
OS << " switch (((uint32_t)(Bits >> " << (OpcodeInfoBits - BitsLeft) << ") & "
<< ((1 << NumBits) - 1) << ")) {\n"
<< " default: assert(0 && \"Invalid command number.\");\n";

// Print out all the cases.
Expand Down

0 comments on commit e34a69a

Please sign in to comment.