mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
all: add type parameter to CreateLoad
This is needed for LLVM 15.
This commit is contained in:
committed by
Ron Evans
parent
6bc6de8f82
commit
7b6a9fab42
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user