aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorKenneth Bell <[email protected]>2023-09-11 23:27:47 +0100
committerAyke <[email protected]>2023-09-21 01:18:05 +0200
commit58fafaeb5ce3ae0cdf0399dab392d24c2322b435 (patch)
treea58c6380251359d7283740a494d029b99308da8b /main.go
parent13a8eae0d4bce114405f175d4e73ec5a8b07a3aa (diff)
downloadtinygo-58fafaeb5ce3ae0cdf0399dab392d24c2322b435.tar.gz
tinygo-58fafaeb5ce3ae0cdf0399dab392d24c2322b435.zip
build: #3893 do not return LLVM structs from Build
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/main.go b/main.go
index a11c930ba..0a8a652b7 100644
--- a/main.go
+++ b/main.go
@@ -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: