Commit 903ea603 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Revert "vcc: Add missing ERRCHK to vcc_expr5()"

This reverts commit 2bc56a4b.

We already assert that sym is not null, and we certainly don't expect a
reserved symbol to have slipped through since we already attempted the
least specific symnbol lookup.

This is not a case where we expect to fail because of user input.
parent 2f8e02a3
......@@ -745,7 +745,6 @@ vcc_expr5(struct vcc *tl, struct expr **e, vcc_type_t fmt)
if (sym == NULL && fmt->global_pfx != NULL && t1->tok != '.') {
sym = VCC_SymbolGet(tl, SYM_MAIN, SYM_NONE,
SYMTAB_CREATE, XREF_REF);
ERRCHK(tl);
AN(sym);
VCC_GlobalSymbol(sym, fmt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment