mips: use byval for all integer types

This commit is contained in:
Maciej 'vesim' Kuliński 2024-09-24 20:59:09 +02:00 committed by Andrew Kelley
parent efc98fcbeb
commit 4ceefca14b

View File

@ -41,8 +41,6 @@ pub fn classifyType(ty: Type, zcu: *Zcu, ctx: Context) Class {
.bool => return .byval, .bool => return .byval,
.float => return .byval, .float => return .byval,
.int, .@"enum", .error_set => { .int, .@"enum", .error_set => {
const bit_size = ty.bitSize(zcu);
if (bit_size > max_direct_size) return .memory;
return .byval; return .byval;
}, },
.vector => { .vector => {