Revert "Stop using a depracated function"

This reverts commit b1791eef6a.
This commit is contained in:
bjorn3 2022-10-23 16:16:50 +02:00
parent 342bac9807
commit b930e2d722

View File

@ -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();