[meta] Legalization: Don't generate a variable for replaced instructions;

(since they're unused)
This commit is contained in:
Benjamin Bouvier
2019-07-04 17:48:55 +02:00
parent cd4c28ad97
commit 56f6908020

View File

@@ -290,8 +290,7 @@ fn emit_dst_inst(def: &Def, def_pool: &DefPool, var_pool: &VarPool, fmt: &mut Fo
// Unwrapping would have left the results intact. Replace the whole instruction. // Unwrapping would have left the results intact. Replace the whole instruction.
fmtln!( fmtln!(
fmt, fmt,
"let {} = pos.func.dfg.replace(inst).{};", "pos.func.dfg.replace(inst).{};",
defined_vars,
def.apply.rust_builder(&def.defined_vars, var_pool) def.apply.rust_builder(&def.defined_vars, var_pool)
); );