Skip to content

Commit ccb331e

Browse files
committed
remove unnecessary line
1 parent 1728ce0 commit ccb331e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builder/build.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,6 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
854854
for _, name := range []string{"malloc", "calloc", "free"} {
855855
if fn := mod.NamedFunction(name); !fn.IsNil() {
856856
fn2 := llvm.AddFunction(mod, "__"+name, fn.Type())
857-
fn2.SetLinkage(llvm.ExternalLinkage)
858857
fn.ReplaceAllUsesWith(fn2)
859858
fn.EraseFromParentAsFunction()
860859
fn2.SetName(name)

0 commit comments

Comments
 (0)