Skip to content

Commit

Permalink
Add some debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 committed Oct 1, 2024
1 parent 0927f55 commit 57ad343
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libfuncs/dup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ pub fn build<'ctx, 'this>(
{
Some(clone_fn) => {
let original_value = entry.argument(0)?.into();
metadata
.get_mut::<crate::metadata::debug_utils::DebugUtils>()
.unwrap()
.debug_print(
context,
helper,
entry,
&format!("cloning {}", info.signature.param_signatures[0].ty),
location,
)?;
let (entry, cloned_value) = clone_fn(
context,
registry,
Expand Down

0 comments on commit 57ad343

Please sign in to comment.