From 13471741b538baa45cd53a521cf7d52087f3200f Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 5 Nov 2025 13:56:54 +0100 Subject: amd64: fix aggregate abi stuff;; ir: fold, peephole optimizing constructors --- amd64/isel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'amd64/isel.c') diff --git a/amd64/isel.c b/amd64/isel.c index 133868e..c250ec0 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -137,7 +137,6 @@ selcall(struct function *fn, struct instr *ins, struct block *blk, int *curi) } #define isimm32(r) (concls(r) == KI4) -#define rswap(a,b) do { union ref _t = (a); (a) = (b); (b) = _t; } while (0) static bool acon(struct addr *addr, union ref r) @@ -248,7 +247,7 @@ fuseaddr(union ref *r, struct block *blk, int *curi) if (!addr.base.bits) { /* absolute int address in disp */ - assert(!addr.index.bits); + if (addr.index.bits) return 0; addr.base = mkintcon(KPTR, addr.disp); addr.disp = 0; } -- cgit v1.2.3