Skip to content

Commit

Permalink
[MC] Quick fix for Windows build failures after D142218
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Mar 27, 2023
1 parent ad55f51 commit ffab44b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Expand Up @@ -70,7 +70,12 @@
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 {
Expand Down Expand Up @@ -2504,7 +2509,7 @@ class ARMOperand : public MCParsedAsmOperand {
} 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!");
Expand Down

0 comments on commit ffab44b

Please sign in to comment.