qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 7333826bcee4a111933d602c076516e434e5d6aa
parent 790f852b9666748b88fe6ddcbedc8a350027d98f
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 30 Sep 2015 11:25:18 -0400

uniformize alignment code in framesz()

Diffstat:
Mlisc/emit.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisc/emit.c b/lisc/emit.c @@ -297,8 +297,7 @@ framesz(Fn *fn) for (i=0, o=0; i<NRClob; i++) o ^= 1 & (fn->reg >> rclob[i]); f = fn->slot; - if (f & 3) - f += 4 - (f & 3); + f = (f + 3) & -4; return 4*f + 8*o; }