commit 12ccbe2af48585937a4bc80c6e559b9617c6aac6
parent 2f307820bc3dab666974d065749aef367982f420
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 15 Jun 2022 18:04:11 +0200
cc1: Don't pop context in typedef types
When a function typedef type is used there isn't a new context
that must be removed, so the call to popctx() must be omited.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c
@@ -60,8 +60,8 @@ endfundcl(Type *tp, Symbol **pars)
/* avoid non used warnings in prototypes */
while (*pars)
(*pars++)->flags |= SUSED;
+ popctx();
}
- popctx();
}
static void