ssa: builder.const add float

This commit is contained in:
visualfc
2024-04-29 22:19:08 +08:00
parent 85bb1302ca
commit acc5de8d14
2 changed files with 11 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ func (p Program) tyInt64() llvm.Type {
}
func (p Program) toLLVMType(typ types.Type) Type {
switch t := typ.(type) {
switch t := types.Default(typ).(type) {
case *types.Basic:
switch t.Kind() {
case types.Int: