Tidy up unneeded references.
This commit is contained in:
@@ -363,7 +363,7 @@ def gen_xform_group(xgrp, fmt, type_sets):
|
||||
with fmt.indented(') -> bool {', '}'):
|
||||
fmt.line('use ir::InstBuilder;')
|
||||
fmt.line('use cursor::{Cursor, FuncCursor};')
|
||||
fmt.line('let pos = &mut FuncCursor::new(func).at_inst(inst);')
|
||||
fmt.line('let mut pos = FuncCursor::new(func).at_inst(inst);')
|
||||
fmt.line('pos.use_srcloc(inst);')
|
||||
|
||||
# Group the xforms by opcode so we can generate a big switch.
|
||||
|
||||
@@ -195,7 +195,7 @@ mod tests {
|
||||
let jmp_ebb1_ebb2;
|
||||
|
||||
{
|
||||
let cur = &mut FuncCursor::new(&mut func);
|
||||
let mut cur = FuncCursor::new(&mut func);
|
||||
|
||||
cur.insert_ebb(ebb0);
|
||||
br_ebb0_ebb2 = cur.ins().brnz(cond, ebb2, &[]);
|
||||
|
||||
Reference in New Issue
Block a user