diff options
| author | Quentin Carbonneaux <[email protected]> | 2024-04-11 10:28:41 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2024-04-11 14:14:53 +0200 |
| commit | 4a809d69b5647aabc8f6a9e22e0bc889f9c779ed (patch) | |
| tree | 31168efce4b56685c1564ea49b93a56bc27c9569 /amd64/emit.c | |
| parent | 8e8f7064366996a7fcc8d84267958cfaf5ee8194 (diff) | |
fold scaled offsets in addresses
Diffstat (limited to 'amd64/emit.c')
| -rw-r--r-- | amd64/emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/emit.c b/amd64/emit.c index 51d1a5c..9636209 100644 --- a/amd64/emit.c +++ b/amd64/emit.c @@ -293,7 +293,7 @@ Next: if (rtype(m->base) == RSlot) { off.type = CBits; off.bits.i = slot(m->base, fn); - addcon(&m->offset, &off); + addcon(&m->offset, &off, 1); m->base = TMP(RBP); } if (m->offset.type != CUndef) |
