namespace exegesis {
unsigned Variable::getIndex() const {
- assert(Index >= 0);
+ assert(Index >= 0 && "Index must be set");
return Index;
}
+
unsigned Variable::getPrimaryOperandIndex() const {
assert(!TiedOperands.empty());
return TiedOperands[0];
llvm::MCOperand AssignedValue;
// The index of this Variable in Instruction.Variables and its associated
// Value in InstructionBuilder.VariableValues.
- unsigned Index = -1;
+ int Index = -1;
};
// MCOperandInfo can only represents Explicit operands. This object gives a