From 4ceefca14be313e91a248fdc532e37edf4a02a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=27vesim=27=20Kuli=C5=84ski?= Date: Tue, 24 Sep 2024 20:59:09 +0200 Subject: [PATCH] mips: use byval for all integer types --- src/arch/mips/abi.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/arch/mips/abi.zig b/src/arch/mips/abi.zig index 8f3cebd21c..02c4c637a4 100644 --- a/src/arch/mips/abi.zig +++ b/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 => {