aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-07-14 15:44:00 +0200
committerRon Evans <[email protected]>2021-07-14 22:33:32 +0200
commit8cc7c6d57202575e2ac4fc5024830333308efee9 (patch)
tree4fde708e8471ad487b783ed857fd02429375e339 /interp
parentcdba4fa8ccde75839dcbbbac30ebfd727aeff909 (diff)
downloadtinygo-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.go1
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}},