diff options
Diffstat (limited to 'prog/encoding.go')
| -rw-r--r-- | prog/encoding.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/encoding.go b/prog/encoding.go index 93af09457..c9d5d40c5 100644 --- a/prog/encoding.go +++ b/prog/encoding.go @@ -216,7 +216,7 @@ func parseArg(typ sys.Type, p *parser, vars map[string]Arg) (Arg, error) { case *sys.VmaType: arg = pointerArg(typ, 0, 0, 0, nil) default: - panic(fmt.Sprintf("bad const type %+v", typ)) + return nil, fmt.Errorf("bad const type %+v", typ) } case 'r': id := p.Ident() |
