aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-09-21 13:55:32 +0200
committerRon Evans <[email protected]>2022-10-19 22:23:19 +0200
commit7b6a9fab4206bde1a11c3a8d79631a0e8ac71a82 (patch)
treeedacd9c30e7f6d6aec8e4d084e800c964aaa12b6 /interp
parent6bc6de8f829786e84e01b97d1f452505a83047b1 (diff)
downloadtinygo-7b6a9fab4206bde1a11c3a8d79631a0e8ac71a82.tar.gz
tinygo-7b6a9fab4206bde1a11c3a8d79631a0e8ac71a82.zip
all: add type parameter to CreateLoad
This is needed for LLVM 15.
Diffstat (limited to 'interp')
-rw-r--r--interp/interpreter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/interpreter.go b/interp/interpreter.go
index 4a4553f88..2c7fd8c30 100644
--- a/interp/interpreter.go
+++ b/interp/interpreter.go
@@ -983,7 +983,7 @@ func (r *runner) runAtRuntime(fn *function, inst instruction, locals []value, me
if err != nil {
return r.errorAt(inst, err)
}
- result = r.builder.CreateLoad(operands[0], inst.name)
+ result = r.builder.CreateLoad(inst.llvmInst.Type(), operands[0], inst.name)
if inst.llvmInst.IsVolatile() {
result.SetVolatile(true)
}