mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
mips: use byval for all integer types
This commit is contained in:
parent
efc98fcbeb
commit
4ceefca14b
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user