Program.Zero: support types.Signature/Chan
This commit is contained in:
@@ -127,7 +127,7 @@ func (p Program) Zero(t Type) Expr {
|
|||||||
default:
|
default:
|
||||||
panic("todo")
|
panic("todo")
|
||||||
}
|
}
|
||||||
case *types.Pointer:
|
case *types.Pointer, *types.Signature, *types.Chan:
|
||||||
return Expr{llvm.ConstNull(t.ll), t}
|
return Expr{llvm.ConstNull(t.ll), t}
|
||||||
case *types.Struct:
|
case *types.Struct:
|
||||||
n := u.NumFields()
|
n := u.NumFields()
|
||||||
|
|||||||
Reference in New Issue
Block a user