diff --git a/llvm/utils/TableGen/PrinterCapstone.cpp b/llvm/utils/TableGen/PrinterCapstone.cpp index 9e3540bfe992..aca29b0fe4a1 100644 --- a/llvm/utils/TableGen/PrinterCapstone.cpp +++ b/llvm/utils/TableGen/PrinterCapstone.cpp @@ -1025,7 +1025,7 @@ void PrinterCapstone::decoderEmitterEmitDecodeInstruction( << "}\n\n"; std::set HasTwoByteInsns = {"ARM"}; - std::set HasFourByteInsns = {"ARM", "PPC", "AArch64"}; + std::set HasFourByteInsns = {"ARM", "PPC", "AArch64", "LoongArch"}; if (HasTwoByteInsns.find(TargetName) != HasTwoByteInsns.end()) OS << "FieldFromInstruction(fieldFromInstruction_2, uint16_t)\n"