diff options
author | Ayke van Laethem <[email protected]> | 2022-09-21 13:55:32 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-10-19 22:23:19 +0200 |
commit | 7b6a9fab4206bde1a11c3a8d79631a0e8ac71a82 (patch) | |
tree | edacd9c30e7f6d6aec8e4d084e800c964aaa12b6 /interp | |
parent | 6bc6de8f829786e84e01b97d1f452505a83047b1 (diff) | |
download | tinygo-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.go | 2 |
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) } |