fix bug if (seen_reg_num + reg_count <= 8)

This commit is contained in:
jiang 2014-05-08 15:39:50 +08:00
parent 899d26605c
commit ad787abea6

View File

@ -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;