We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32525f2 commit 3a9db6eCopy full SHA for 3a9db6e
llvm/utils/TableGen/PseudoLoweringEmitter.cpp
@@ -190,7 +190,7 @@ void PseudoLoweringEmitter::evaluateExpansion(const Record *Rec) {
190
unsigned MIOpNo = DstOp.MIOperandNo;
191
192
if (const auto *SubDag = dyn_cast<DagInit>(Dag->getArg(Idx))) {
193
- if (DstOp.MIOperandInfo->getNumArgs() == 0)
+ if (!DstOp.MIOperandInfo || DstOp.MIOperandInfo->getNumArgs() == 0)
194
PrintFatalError(Rec, "In pseudo instruction '" + Rec->getName() +
195
"', operand '" + DstOp.Rec->getName() +
196
"' does not have suboperands");
0 commit comments