mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 11:24:19 +08:00
fix bug if (seen_reg_num + reg_count <= 8)
This commit is contained in:
parent
899d26605c
commit
ad787abea6
@ -1404,7 +1404,7 @@ void gfunc_prolog(CType *func_type)
|
||||
break;
|
||||
|
||||
case x86_64_mode_integer:
|
||||
if (seen_reg_num + reg_count <= 8) {
|
||||
if (seen_reg_num + reg_count <= REGN) {
|
||||
seen_reg_num += reg_count;
|
||||
} else {
|
||||
seen_reg_num = 8;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user