From ad787abea6d4e6ee0717c4e791d10b1f6281e91d Mon Sep 17 00:00:00 2001 From: jiang <30155751@qq.com> Date: Thu, 8 May 2014 15:39:50 +0800 Subject: [PATCH] fix bug if (seen_reg_num + reg_count <= 8) --- x86_64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86_64-gen.c b/x86_64-gen.c index ae65328..625bb4f 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -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;