Prefix fixed_results/fixed_value_arguments with num to indicate they return a usize;

This commit is contained in:
Benjamin Bouvier
2018-11-08 16:48:20 +01:00
committed by Dan Gohman
parent e13b0886dc
commit f896bfb946
7 changed files with 80 additions and 54 deletions

View File

@@ -266,7 +266,7 @@ impl<'a> Context<'a> {
let retvals = &defs[self.cur.func.dfg[inst]
.opcode()
.constraints()
.fixed_results()..];
.num_fixed_results()..];
if !retvals.is_empty() {
let sig = self
.cur
@@ -367,7 +367,7 @@ impl<'a> Context<'a> {
let offset = self.cur.func.dfg[inst]
.opcode()
.constraints()
.fixed_value_arguments();
.num_fixed_value_arguments();
if args.len() == offset {
return;
}