diff --git a/ssa/expr.go b/ssa/expr.go index 270f7324..881cc0d5 100644 --- a/ssa/expr.go +++ b/ssa/expr.go @@ -127,7 +127,7 @@ func (p Program) Zero(t Type) Expr { default: panic("todo") } - case *types.Pointer: + case *types.Pointer, *types.Signature, *types.Chan: return Expr{llvm.ConstNull(t.ll), t} case *types.Struct: n := u.NumFields()