Skip to content

Commit 0ab59a3

Browse files
committed
clone earlier
1 parent 1890f8a commit 0ab59a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/monomorph_pass.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ impl MonomorphPass {
4848
}
4949

5050
if let Decl::Func(fdecl) = &func_decls[0] {
51+
let fdecl = fdecl.clone();
5152
self.process_function(&fdecl, decls)?;
52-
self.out_decls.push(Decl::Func(fdecl.clone()));
53+
self.out_decls.push(Decl::Func(fdecl));
5354
} else {
5455
return Err(format!(
5556
"Entry point '{}' is not a function",

0 commit comments

Comments
 (0)