aboutsummaryrefslogtreecommitdiff
path: root/internal/compile/compile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/compile/compile.go')
-rw-r--r--internal/compile/compile.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/compile/compile.go b/internal/compile/compile.go
index c184e64..300d196 100644
--- a/internal/compile/compile.go
+++ b/internal/compile/compile.go
@@ -1599,7 +1599,8 @@ func (fcomp *fcomp) args(call *syntax.CallExpr) (op Opcode, arg uint32) {
// TODO(adonovan): avoid this with a more flexible encoding.
if p >= 256 || n >= 256 {
- log.Fatalf("%s: compiler error: too many arguments in call", call.Lparen)
+ // resolve already checked this; should be unreachable
+ panic("too many arguments in call")
}
return CALL + Opcode(callmode), uint32(p<<8 | n)