internal/cabi: check and skip param empty type

This commit is contained in:
visualfc
2025-08-15 21:29:43 +08:00
parent 28962a1c6c
commit 04bb3eb5a9
11 changed files with 444 additions and 14 deletions

View File

@@ -78,7 +78,6 @@ func (p *TypeInfoAmd64) GetTypeInfo(ctx llvm.Context, typ llvm.Type, bret bool)
if typ.TypeKind() == llvm.VoidTypeKind {
info.Kind = AttrVoid
return info
} else if typ.TypeKind() == llvm.PointerTypeKind {
}
info.Size = p.Sizeof(typ)
info.Align = p.Alignof(typ)