[meta] Rename Operand::is_immediate to is_immediate_or_entityref

This commit is contained in:
Benjamin Bouvier
2019-10-28 17:45:40 +01:00
parent f37d1c7ecc
commit b657aa57f6
4 changed files with 11 additions and 11 deletions

View File

@@ -322,7 +322,7 @@ impl InstructionBuilder {
for (i, op) in operands_in.iter().enumerate() {
if op.is_value() {
value_opnums.push(i);
} else if op.is_immediate() {
} else if op.is_immediate_or_entityref() {
imm_opnums.push(i);
} else {
assert!(op.is_varargs());
@@ -500,7 +500,7 @@ impl BoundInstruction {
.inst
.operands_in
.iter()
.filter(|o| o.is_immediate())
.filter(|o| o.is_immediate_or_entityref())
.count();
if self.immediate_values.len() > immediate_count {
return Err(format!(