interp: populate Inst field in interp.Error
It is used in the main package but wasn't actually set anywhere.
Этот коммит содержится в:
родитель
cdba4fa8cc
коммит
8cc7c6d572
1 изменённых файлов: 1 добавлений и 0 удалений
|
@ -57,6 +57,7 @@ func (r *runner) errorAt(inst instruction, err error) *Error {
|
||||||
pos := getPosition(inst.llvmInst)
|
pos := getPosition(inst.llvmInst)
|
||||||
return &Error{
|
return &Error{
|
||||||
ImportPath: r.pkgName,
|
ImportPath: r.pkgName,
|
||||||
|
Inst: inst.llvmInst,
|
||||||
Pos: pos,
|
Pos: pos,
|
||||||
Err: err,
|
Err: err,
|
||||||
Traceback: []ErrorLine{{pos, inst.llvmInst}},
|
Traceback: []ErrorLine{{pos, inst.llvmInst}},
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче