Commit 4ceefca14b

Maciej 'vesim' Kuliński <vesim809@pm.me>
2024-09-24 20:59:09
mips: use byval for all integer types
1 parent efc98fc
Changed files (1)
src
arch
mips
src/arch/mips/abi.zig
@@ -41,8 +41,6 @@ pub fn classifyType(ty: Type, zcu: *Zcu, ctx: Context) Class {
         .bool => return .byval,
         .float => return .byval,
         .int, .@"enum", .error_set => {
-            const bit_size = ty.bitSize(zcu);
-            if (bit_size > max_direct_size) return .memory;
             return .byval;
         },
         .vector => {