Skip to content

Commit 3a9db6e

Browse files
committed
fixup! address review comment
1 parent 32525f2 commit 3a9db6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/PseudoLoweringEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void PseudoLoweringEmitter::evaluateExpansion(const Record *Rec) {
190190
unsigned MIOpNo = DstOp.MIOperandNo;
191191

192192
if (const auto *SubDag = dyn_cast<DagInit>(Dag->getArg(Idx))) {
193-
if (DstOp.MIOperandInfo->getNumArgs() == 0)
193+
if (!DstOp.MIOperandInfo || DstOp.MIOperandInfo->getNumArgs() == 0)
194194
PrintFatalError(Rec, "In pseudo instruction '" + Rec->getName() +
195195
"', operand '" + DstOp.Rec->getName() +
196196
"' does not have suboperands");

0 commit comments

Comments
 (0)