mirror of
https://github.com/frida/tinycc
synced 2024-11-28 02:29:38 +03:00
Fix commit 85f6fad3a6
Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been modified (and hence saved_nocode_wanted is uninitialized).
This commit is contained in:
parent
cf95ac399c
commit
508df168f4
3
tccgen.c
3
tccgen.c
@ -3317,7 +3317,8 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td)
|
||||
nocode_wanted = 1;
|
||||
}
|
||||
post_type(type, ad);
|
||||
nocode_wanted = saved_nocode_wanted;
|
||||
if (storage & VT_STATIC)
|
||||
nocode_wanted = saved_nocode_wanted;
|
||||
type->t |= storage;
|
||||
if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2)
|
||||
parse_attribute(ad);
|
||||
|
Loading…
Reference in New Issue
Block a user