Skip to content

Commit 575886c

Browse files
committed
simplify
1 parent ccb331e commit 575886c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
853853
}
854854
for _, name := range []string{"malloc", "calloc", "free"} {
855855
if fn := mod.NamedFunction(name); !fn.IsNil() {
856-
fn2 := llvm.AddFunction(mod, "__"+name, fn.Type())
856+
fn2 := llvm.AddFunction(mod, name, fn.Type())
857857
fn.ReplaceAllUsesWith(fn2)
858858
fn.EraseFromParentAsFunction()
859859
fn2.SetName(name)

0 commit comments

Comments
 (0)