Skip to content

Commit

Permalink
stop using deprecated monomorphize
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Dec 19, 2024
1 parent ed3c0b8 commit 2970f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions execute_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn find_funcdef_node(hugr: impl HugrView, fn_name: &str) -> PyResult<hugr::Node>
}
}

fn guppy_pass(hugr: Hugr) -> Hugr {
let hugr = hugr::algorithms::monomorphize(hugr);
fn guppy_pass(mut hugr: Hugr) -> Hugr {
hugr::algorithms::MonomorphizePass::default().run(&mut hugr).unwrap();
hugr::algorithms::remove_polyfuncs(hugr)
}

Expand Down

0 comments on commit 2970f23

Please sign in to comment.