Skip to content

Commit cd6432c

Browse files
committed
fix: smallvec api
1 parent 7e1ef86 commit cd6432c

File tree

1 file changed

+2
-2
lines changed
  • libs/@local/hashql/mir/src/pass/transform/ssa_repair

1 file changed

+2
-2
lines changed

libs/@local/hashql/mir/src/pass/transform/ssa_repair/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl<'heap> VisitorMut<'heap> for RewireBody<'_, 'heap> {
400400
// We are part of a DF+ and need to add our param, subsequent visits will use that value to
401401
// further recurse.
402402
if let FindDefFromTop::Param(param) = def {
403-
let mut new_params = TinyVec::from_slice(params);
403+
let mut new_params = TinyVec::from_slice_copy(params);
404404
new_params.push(param);
405405

406406
*params = self.interner.locals.intern_slice(&new_params);
@@ -437,7 +437,7 @@ impl<'heap> VisitorMut<'heap> for RewireBody<'_, 'heap> {
437437
debug_assert_eq!(Some(current_local), self.last_def);
438438
let operand = Operand::Place(Place::local(current_local, self.interner));
439439

440-
let mut args = TinyVec::from_slice(&target.args);
440+
let mut args = TinyVec::from_slice_copy(&target.args);
441441
args.push(operand);
442442

443443
target.args = self.interner.operands.intern_slice(&args);

0 commit comments

Comments
 (0)