[meta] Legalization: Don't generate a variable for replaced instructions;
(since they're unused)
This commit is contained in:
@@ -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)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user