| ... | @@ -45,7 +45,7 @@ pub fn classifyType(ty: Type, mod: *Module) [2]Class { | ... | @@ -45,7 +45,7 @@ pub fn classifyType(ty: Type, mod: *Module) [2]Class { |
| 45 | } | 45 | } |
| 46 | return classifyType(field_ty, mod); | 46 | return classifyType(field_ty, mod); |
| 47 | }, | 47 | }, |
| 48 | .Int, .Enum, .ErrorSet, .Vector => { | 48 | .Int, .Enum, .ErrorSet => { |
| 49 | const int_bits = ty.intInfo(mod).bits; | 49 | const int_bits = ty.intInfo(mod).bits; |
| 50 | if (int_bits <= 64) return direct; | 50 | if (int_bits <= 64) return direct; |
| 51 | if (int_bits <= 128) return .{ .direct, .direct }; | 51 | if (int_bits <= 128) return .{ .direct, .direct }; |
| ... | @@ -58,6 +58,7 @@ pub fn classifyType(ty: Type, mod: *Module) [2]Class { | ... | @@ -58,6 +58,7 @@ pub fn classifyType(ty: Type, mod: *Module) [2]Class { |
| 58 | return memory; | 58 | return memory; |
| 59 | }, | 59 | }, |
| 60 | .Bool => return direct, | 60 | .Bool => return direct, |
| | 61 | .Vector => return direct, |
| 61 | .Array => return memory, | 62 | .Array => return memory, |
| 62 | .Optional => { | 63 | .Optional => { |
| 63 | assert(ty.isPtrLikeOptional(mod)); | 64 | assert(ty.isPtrLikeOptional(mod)); |