library: encoding/{binary, base64}

This commit is contained in:
xushiwei
2024-07-30 00:28:04 +08:00
parent 37956e2f05
commit afdf31a66c
3 changed files with 21 additions and 0 deletions

View File

@@ -699,6 +699,7 @@ func (b Builder) ChangeType(t Type, x Expr) (ret Expr) {
case vkFuncDecl:
ret.impl = checkExpr(x, t.raw.Type, b).impl
case vkClosure:
// TODO(xsw): change type should be a noop instruction
convType := func() Expr {
r := Expr{llvm.CreateAlloca(b.impl, t.ll), b.Prog.Pointer(t)}
b.Store(r, x)