diff options
author | Ayke van Laethem <[email protected]> | 2021-07-14 15:44:00 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-07-14 22:33:32 +0200 |
commit | 8cc7c6d57202575e2ac4fc5024830333308efee9 (patch) | |
tree | 4fde708e8471ad487b783ed857fd02429375e339 /interp | |
parent | cdba4fa8ccde75839dcbbbac30ebfd727aeff909 (diff) | |
download | tinygo-8cc7c6d57202575e2ac4fc5024830333308efee9.tar.gz tinygo-8cc7c6d57202575e2ac4fc5024830333308efee9.zip |
interp: populate Inst field in interp.Error
It is used in the main package but wasn't actually set anywhere.
Diffstat (limited to 'interp')
-rw-r--r-- | interp/errors.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interp/errors.go b/interp/errors.go index 48cf85df0..c90de3329 100644 --- a/interp/errors.go +++ b/interp/errors.go @@ -57,6 +57,7 @@ func (r *runner) errorAt(inst instruction, err error) *Error { pos := getPosition(inst.llvmInst) return &Error{ ImportPath: r.pkgName, + Inst: inst.llvmInst, Pos: pos, Err: err, Traceback: []ErrorLine{{pos, inst.llvmInst}}, |