Merge remote-tracking branch 'gop/main' into q
This commit is contained in:
@@ -140,7 +140,7 @@ func (b Builder) Const(v constant.Value, typ Type) Expr {
|
||||
if v == nil {
|
||||
return prog.Null(typ)
|
||||
}
|
||||
switch t := types.Default(typ.t).(type) {
|
||||
switch t := typ.t.(type) {
|
||||
case *types.Basic:
|
||||
kind := t.Kind()
|
||||
switch {
|
||||
|
||||
@@ -212,7 +212,7 @@ func (p Program) tyInt64() llvm.Type {
|
||||
}
|
||||
|
||||
func (p Program) toLLVMType(typ types.Type) Type {
|
||||
switch t := types.Default(typ).(type) {
|
||||
switch t := typ.(type) {
|
||||
case *types.Basic:
|
||||
switch t.Kind() {
|
||||
case types.Int:
|
||||
|
||||
Reference in New Issue
Block a user