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
@@ -57,16 +57,14 @@ func runTest(t *testing.T, pathPrefix string) {
if err != nil {
if err, match := err.(*Error); match {
println(err.Error())
if !err.Inst.IsNil() {
err.Inst.Dump()
println()
if len(err.Inst) != 0 {
println(err.Inst)
}
if len(err.Traceback) > 0 {
println("\ntraceback:")
for _, line := range err.Traceback {
println(line.Pos.String() + ":")
line.Inst.Dump()
println()
println(line.Inst)
}
}
}