From a8b83ce43a95fa519dacfe7690a3a0098af7909c Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 19 Feb 2017 23:50:13 +0100 Subject: Remove VT_REF The canonical way to describe a local variable that actually holds the address of an lvalue is VT_LLOCAL. Remove the last user of VT_REF, and handling of it, thereby freeing a flag for SValue.r. --- x86_64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'x86_64-gen.c') diff --git a/x86_64-gen.c b/x86_64-gen.c index 9f19e78..0c0968c 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -957,7 +957,7 @@ void gfunc_prolog(CType *func_type) if (reg_param_index < REGN) { gen_modrm64(0x89, arg_regs[reg_param_index], VT_LOCAL, NULL, addr); } - sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | VT_LVAL | VT_REF, addr); + sym_push(sym->v & ~SYM_FIELD, type, VT_LLOCAL | VT_LVAL, addr); } else { if (reg_param_index < REGN) { /* save arguments passed by register */ -- cgit v1.3.1