Browse Source

interp: populate Inst field in interp.Error

It is used in the main package but wasn't actually set anywhere.
pull/2002/head
Ayke van Laethem 3 years ago
committed by Ron Evans
parent
commit
8cc7c6d572
  1. 1
      interp/errors.go

1
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}},

Loading…
Cancel
Save