Skip to content

Commit 8601a62

Browse files
committed
Fixed issue that prevented C function declarations and definitions from being merged in IR
1 parent efef0ce commit 8601a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lower/function.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn lower_func_head(
108108

109109
let mangled_name = if func.name.plain() == "main" {
110110
"main".into()
111-
} else if func.is_foreign {
111+
} else if func.is_foreign || func.is_exposed {
112112
func.name.plain().to_string()
113113
} else {
114114
func.name.display(&asg.workspace.fs).to_string() + &poly_recipe.to_string()

0 commit comments

Comments
 (0)