diff options
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) } |