This commit is contained in:
bjorn3
2019-06-29 17:06:17 +02:00
committed by Dan Gohman
parent 599b48d95f
commit 0d5b87038a
5 changed files with 32 additions and 17 deletions

View File

@@ -112,7 +112,9 @@ fn unwrap_inst(
assert_eq!(inst.operands_in.len(), apply.args.len());
for (i, op) in inst.operands_in.iter().enumerate() {
if op.is_varargs() {
let name = var_pool.get(apply.args[i].maybe_var().expect("vararg without name")).name;
let name = var_pool
.get(apply.args[i].maybe_var().expect("vararg without name"))
.name;
fmtln!(fmt, "let {} = &{};", name, name);
}
}