diff options
Diffstat (limited to 'bindings/go/llvm/linker.go')
-rw-r--r-- | bindings/go/llvm/linker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/go/llvm/linker.go b/bindings/go/llvm/linker.go index 64d794e..f64f66c 100644 --- a/bindings/go/llvm/linker.go +++ b/bindings/go/llvm/linker.go @@ -22,7 +22,7 @@ import "errors" func LinkModules(Dest, Src Module) error { var cmsg *C.char - failed := C.LLVMLinkModules(Dest.C, Src.C, 0, &cmsg) + failed := C.LLVMLinkModules(Dest.C, Src.C, C.LLVMLinkerDestroySource, &cmsg) if failed != 0 { err := errors.New(C.GoString(cmsg)) C.LLVMDisposeMessage(cmsg) |