aboutsummaryrefslogtreecommitdiffhomepage
path: root/compiler/compiler.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-08-15 19:55:39 +0200
committerRon Evans <[email protected]>2024-08-17 11:49:14 +0200
commit8b626e6ea7e98887fbd48e3c55216fdd9327fac6 (patch)
treefe24168bcad481bedf2bf4408b49efb840fdbbd5 /compiler/compiler.go
parent1d1f4fc401b449e325f6c2c04001db14801cd398 (diff)
downloadtinygo-8b626e6ea7e98887fbd48e3c55216fdd9327fac6.tar.gz
tinygo-8b626e6ea7e98887fbd48e3c55216fdd9327fac6.zip
compiler: add support for Go 1.23 range-over-func
Diffstat (limited to 'compiler/compiler.go')
-rw-r--r--compiler/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go
index bc17250d9..201605d78 100644
--- a/compiler/compiler.go
+++ b/compiler/compiler.go
@@ -1963,7 +1963,7 @@ func (b *builder) getValue(expr ssa.Value, pos token.Pos) llvm.Value {
return value
} else {
// indicates a compiler bug
- panic("local has not been parsed: " + expr.String())
+ panic("SSA value not previously found in function: " + expr.String())
}
}
}