forked from OSchip/llvm-project
parent
1c9870cf13
commit
fe5b0b488e
|
@ -18,9 +18,10 @@
|
|||
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];
|
||||
|
|
|
@ -47,7 +47,7 @@ struct Variable {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue