[MC] Quick fix for Windows build failures after D142218
authorJay Foad <jay.foad@amd.com>
Mon, 27 Mar 2023 12:29:00 +0000 (13:29 +0100)
committerJay Foad <jay.foad@amd.com>
Mon, 27 Mar 2023 13:29:05 +0000 (14:29 +0100)
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 806ee70..ace2891 100644 (file)
 using namespace llvm;
 
 namespace llvm {
-extern const MCInstrDesc ARMDescs[];
+struct ARMInstrTable {
+  MCInstrDesc Insts[4445];
+  MCOperandInfo OperandInfo[3026];
+  MCPhysReg ImplicitOps[130];
+};
+extern const ARMInstrTable ARMDescs;
 } // end namespace llvm
 
 namespace {
@@ -2504,7 +2509,7 @@ public:
     } else {
       unsigned NextOpIndex = Inst.getNumOperands();
       const MCInstrDesc &MCID =
-          ARMDescs[ARM::INSTRUCTION_LIST_END - 1 - Inst.getOpcode()];
+          ARMDescs.Insts[ARM::INSTRUCTION_LIST_END - 1 - Inst.getOpcode()];
       int TiedOp = MCID.getOperandConstraint(NextOpIndex, MCOI::TIED_TO);
       assert(TiedOp >= 0 &&
              "Inactive register in vpred_r is not tied to an output!");