Revert "Stop using a depracated function"
This reverts commit b1791eef6a
.
This commit is contained in:
parent
342bac9807
commit
b930e2d722
@ -392,7 +392,7 @@ pub(crate) fn new_var(
|
||||
local: Local,
|
||||
layout: TyAndLayout<'tcx>,
|
||||
) -> CPlace<'tcx> {
|
||||
let var = Variable::from_u32(fx.next_ssa_var);
|
||||
let var = Variable::with_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 }
|
||||
@ -403,9 +403,9 @@ pub(crate) fn new_var_pair(
|
||||
local: Local,
|
||||
layout: TyAndLayout<'tcx>,
|
||||
) -> CPlace<'tcx> {
|
||||
let var1 = Variable::from_u32(fx.next_ssa_var);
|
||||
let var1 = Variable::with_u32(fx.next_ssa_var);
|
||||
fx.next_ssa_var += 1;
|
||||
let var2 = Variable::from_u32(fx.next_ssa_var);
|
||||
let var2 = Variable::with_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