Merge remote-tracking branch 'gop/main' into q

This commit is contained in:
xushiwei
2024-04-30 08:27:57 +08:00
5 changed files with 46 additions and 3 deletions

View File

@@ -484,7 +484,7 @@ func (p *context) compileValue(b llssa.Builder, v ssa.Value) llssa.Expr {
g := p.varOf(v)
return g.Expr
case *ssa.Const:
t := v.Type()
t := types.Default(v.Type())
return b.Const(v.Value, p.prog.Type(t))
}
panic(fmt.Sprintf("compileValue: unknown value - %T\n", v))