Merge pull request #468 from xushiwei/q

demo: ctxcancel
This commit is contained in:
xushiwei
2024-07-08 16:05:25 +08:00
committed by GitHub
2 changed files with 40 additions and 1 deletions

View File

@@ -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()