build: #3893 do not return LLVM structs from Build

This commit is contained in:
Kenneth Bell
2023-09-11 23:27:47 +01:00
committed by Ayke
parent 13a8eae0d4
commit 58fafaeb5c
4 changed files with 11 additions and 15 deletions
+3 -5
View File
@@ -1289,16 +1289,14 @@ func printCompilerError(logln func(...interface{}), err error) {
case *interp.Error:
logln("#", err.ImportPath)
logln(err.Error())
if !err.Inst.IsNil() {
err.Inst.Dump()
logln()
if len(err.Inst) != 0 {
logln(err.Inst)
}
if len(err.Traceback) > 0 {
logln("\ntraceback:")
for _, line := range err.Traceback {
logln(line.Pos.String() + ":")
line.Inst.Dump()
logln()
logln(line.Inst)
}
}
case loader.Errors: