aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/build.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-09-21 00:37:01 +0200
committerRon Evans <[email protected]>2022-10-19 22:23:19 +0200
commit6bc6de8f829786e84e01b97d1f452505a83047b1 (patch)
treebf90f4942d2aa881521b77734a07acaf0b8b411d /builder/build.go
parentb79bf29c110191140b2f9ac0b1085127d66c36c7 (diff)
downloadtinygo-6bc6de8f829786e84e01b97d1f452505a83047b1.tar.gz
tinygo-6bc6de8f829786e84e01b97d1f452505a83047b1.zip
all: add type parameter to CreateCall
This uses LLVMBuildCall2 in the background, which is the replacement for the deprecated LLVMBuildCall function.
Diffstat (limited to 'builder/build.go')
-rw-r--r--builder/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/build.go b/builder/build.go
index 8095a6b60..bb2d634a9 100644
--- a/builder/build.go
+++ b/builder/build.go
@@ -516,7 +516,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
if pkgInit.IsNil() {
panic("init not found for " + pkg.Pkg.Path())
}
- irbuilder.CreateCall(pkgInit, []llvm.Value{llvm.Undef(i8ptrType)}, "")
+ irbuilder.CreateCall(pkgInit.GlobalValueType(), pkgInit, []llvm.Value{llvm.Undef(i8ptrType)}, "")
}
irbuilder.CreateRetVoid()