mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Merge pull request #3712 from laytan/fix-large-ints-amd64sysv-abi
fix large ints amd64 sysv abi
This commit is contained in:
+9
-1
@@ -900,7 +900,15 @@ namespace lbAbiAmd64SysV {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (LLVMGetTypeKind(t)) {
|
switch (LLVMGetTypeKind(t)) {
|
||||||
case LLVMIntegerTypeKind:
|
case LLVMIntegerTypeKind: {
|
||||||
|
i64 s = t_size;
|
||||||
|
while (s > 0) {
|
||||||
|
unify(cls, ix + off/8, RegClass_Int);
|
||||||
|
off += 8;
|
||||||
|
s -= 8;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case LLVMPointerTypeKind:
|
case LLVMPointerTypeKind:
|
||||||
case LLVMHalfTypeKind:
|
case LLVMHalfTypeKind:
|
||||||
unify(cls, ix + off/8, RegClass_Int);
|
unify(cls, ix + off/8, RegClass_Int);
|
||||||
|
|||||||
Reference in New Issue
Block a user