[TableGen] Set tied to operand custom flag if current operand has tied operand.
This commit is contained in:
parent
f5df45650f
commit
bd1c51d245
|
@ -409,6 +409,12 @@ static void ParseCustomConstraint(StringRef CStr, CGIOperandList &Ops,
|
||||||
"15] for custom constraint: '" +
|
"15] for custom constraint: '" +
|
||||||
CStr + "'");
|
CStr + "'");
|
||||||
|
|
||||||
|
int TiedFlatOp =
|
||||||
|
Ops[Op.first].Constraints[Op.second].getConstraint(MCOI::TIED_TO);
|
||||||
|
|
||||||
|
if (TiedFlatOp != -1)
|
||||||
|
Op = Ops.getSubOperandNumber(TiedFlatOp);
|
||||||
|
|
||||||
// Build the string for the operand
|
// Build the string for the operand
|
||||||
if (Ops[Op.first].Constraints[Op.second].isCustom())
|
if (Ops[Op.first].Constraints[Op.second].isCustom())
|
||||||
PrintFatalError(Rec->getLoc(),
|
PrintFatalError(Rec->getLoc(),
|
||||||
|
|
Loading…
Reference in New Issue