[meta] Simplify and comment instruction building a bit;

This commit is contained in:
Benjamin Bouvier
2019-09-03 18:14:58 +02:00
parent 0acddc08ea
commit 38656cce35
2 changed files with 67 additions and 73 deletions

View File

@@ -189,7 +189,9 @@ impl FormatRegistry {
if operand.is_value() {
num_values += 1;
}
has_varargs = has_varargs || operand.is_varargs();
if !has_varargs {
has_varargs = operand.is_varargs();
}
if let Some(imm_key) = operand.kind.imm_key() {
imm_keys.push(imm_key);
}