Fix potential bugs in restoring newdecl state.
This commit is contained in:
parent
da33c79d8b
commit
96bbd4d7e0
@ -3606,9 +3606,11 @@ symbol *parse_inline_function(methodmap_t *map, const typeinfo_t *type, const ch
|
|||||||
if (is_native) {
|
if (is_native) {
|
||||||
target = funcstub(tMETHODMAP, &decl, thistag);
|
target = funcstub(tMETHODMAP, &decl, thistag);
|
||||||
} else {
|
} else {
|
||||||
sc_require_newdecls++;
|
int lcl_require_newdecls = sc_require_newdecls;
|
||||||
|
|
||||||
|
sc_require_newdecls = TRUE;
|
||||||
int ok = newfunc(&decl, thistag, FALSE, FALSE, TRUE, &target);
|
int ok = newfunc(&decl, thistag, FALSE, FALSE, TRUE, &target);
|
||||||
sc_require_newdecls--;
|
sc_require_newdecls = lcl_require_newdecls;
|
||||||
|
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user