Skip to content

Commit 8cc7c6d

Browse files
aykevldeadprogram
authored andcommitted
interp: populate Inst field in interp.Error
It is used in the main package but wasn't actually set anywhere.
1 parent cdba4fa commit 8cc7c6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interp/errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func (r *runner) errorAt(inst instruction, err error) *Error {
5757
pos := getPosition(inst.llvmInst)
5858
return &Error{
5959
ImportPath: r.pkgName,
60+
Inst: inst.llvmInst,
6061
Pos: pos,
6162
Err: err,
6263
Traceback: []ErrorLine{{pos, inst.llvmInst}},

0 commit comments

Comments
 (0)