aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/interpreter.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 /interp/interpreter.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 'interp/interpreter.go')
-rw-r--r--interp/interpreter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/interpreter.go b/interp/interpreter.go
index 7cee14bf4..4a4553f88 100644
--- a/interp/interpreter.go
+++ b/interp/interpreter.go
@@ -977,7 +977,7 @@ func (r *runner) runAtRuntime(fn *function, inst instruction, locals []value, me
}
}
}
- result = r.builder.CreateCall(llvmFn, args, inst.name)
+ result = r.builder.CreateCall(inst.llvmInst.CalledFunctionType(), llvmFn, args, inst.name)
case llvm.Load:
err := mem.markExternalLoad(operands[0])
if err != nil {