diff options
| author | 2025-11-27 21:35:22 +0100 | |
|---|---|---|
| committer | 2025-11-27 21:35:22 +0100 | |
| commit | a86b5b99066c7369449c6d38dbccf1dbf6b65bca (patch) | |
| tree | 30267ffc61cadda8cf955a8f334fffacbcd634a9 | |
| parent | ba40fd10d0c6066c07cd651c25cefba8d75df9e0 (diff) | |
isel: fix branch arg
| -rw-r--r-- | amd64/isel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/amd64/isel.c b/amd64/isel.c index 1b10de5..9065ccf 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -563,6 +563,8 @@ static void seljmp(struct function *fn, struct block *blk) { if (blk->jmp.t == Jb && blk->jmp.arg[0].bits) { + int curi = blk->ins.n; + fixarg(&blk->jmp.arg[0], NULL, blk, &curi); union ref c = blk->jmp.arg[0]; if (c.t != RTMP) { enum irclass cls = c.t == RICON ? KI32 : c.t == RXCON && conht[c.i].cls ? conht[c.i].cls : KPTR; |