Skip to content

Commit

Permalink
try fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronostasys committed Nov 22, 2023
1 parent 710010c commit 2d401b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ast/builder/llvmbuilder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,7 @@ impl<'a, 'ctx> LLVMBuilder<'a, 'ctx> {
if let Some(f) = self.module.get_function(fname) {
return f;
}
let f = self
.module
.add_function(fname, ftp, Some(Linkage::LinkOnceAny));
let f = self.module.add_function(fname, ftp, Some(Linkage::Private));
self.used.borrow_mut().push(f);
// the array is a struct, the first field is the visit function,
// the second field is the real array, the third field is it's length
Expand Down

0 comments on commit 2d401b7

Please sign in to comment.