Skip to content
Permalink
Browse files

ll2go: handle translation of constants expressions

  • Loading branch information...
mewmew committed Mar 13, 2018
1 parent 62685a8 commit 68dfc03d7c17bb539b533b660dae0a1599c244ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmd/ll2go/main.go
@@ -346,7 +346,7 @@ func (d *decompiler) pointerToConst(c constant.Constant) ast.Expr {
return d.globalIdent(c.Name)
// Constant expressions
case constant.Expr:
panic("support for value constant.Expr not yet implemented")
return d.expr(c)
default:
panic(fmt.Sprintf("support for value %T not yet implemented", c))
}

0 comments on commit 68dfc03

Please sign in to comment.
You can’t perform that action at this time.