diff options
Diffstat (limited to 'arm64')
-rw-r--r-- | arm64/abi.c | 2 | ||||
-rw-r--r-- | arm64/isel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arm64/abi.c b/arm64/abi.c index b340af2..17ea1d1 100644 --- a/arm64/abi.c +++ b/arm64/abi.c @@ -645,7 +645,7 @@ arm64_abi(Fn *fn) b->visit = 0; /* lower parameters */ - for (b=fn->start, i=b->ins; i-b->ins<b->nins; i++) + for (b=fn->start, i=b->ins; i<&b->ins[b->nins]; i++) if (!ispar(i->op)) break; p = selpar(fn, b->ins, i); diff --git a/arm64/isel.c b/arm64/isel.c index 59f1579..031ba11 100644 --- a/arm64/isel.c +++ b/arm64/isel.c @@ -232,7 +232,7 @@ arm64_isel(Fn *fn) b = fn->start; /* specific to NAlign == 3 */ /* or change n=4 and sz /= 4 below */ for (al=Oalloc, n=4; al<=Oalloc1; al++, n*=2) - for (i=b->ins; i-b->ins < b->nins; i++) + for (i=b->ins; i<&b->ins[b->nins]; i++) if (i->op == al) { if (rtype(i->arg[0]) != RCon) break; |