Stop using a depracated function
This commit is contained in:
parent
da770abea3
commit
b1791eef6a
@ -348,7 +348,7 @@ pub(crate) fn new_var(
|
||||
local: Local,
|
||||
layout: TyAndLayout<'tcx>,
|
||||
) -> CPlace<'tcx> {
|
||||
let var = Variable::with_u32(fx.next_ssa_var);
|
||||
let var = Variable::from_u32(fx.next_ssa_var);
|
||||
fx.next_ssa_var += 1;
|
||||
fx.bcx.declare_var(var, fx.clif_type(layout.ty).unwrap());
|
||||
CPlace { inner: CPlaceInner::Var(local, var), layout }
|
||||
@ -359,9 +359,9 @@ pub(crate) fn new_var_pair(
|
||||
local: Local,
|
||||
layout: TyAndLayout<'tcx>,
|
||||
) -> CPlace<'tcx> {
|
||||
let var1 = Variable::with_u32(fx.next_ssa_var);
|
||||
let var1 = Variable::from_u32(fx.next_ssa_var);
|
||||
fx.next_ssa_var += 1;
|
||||
let var2 = Variable::with_u32(fx.next_ssa_var);
|
||||
let var2 = Variable::from_u32(fx.next_ssa_var);
|
||||
fx.next_ssa_var += 1;
|
||||
|
||||
let (ty1, ty2) = fx.clif_pair_type(layout.ty).unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user