diff --git a/util/grind/db_symtab.g b/util/grind/db_symtab.g index 4f8bff13..d39801dd 100644 --- a/util/grind/db_symtab.g +++ b/util/grind/db_symtab.g @@ -823,6 +823,7 @@ DbRead(f) else line_file->on_mptr = n->on_mptr; break; case N_MAIN: + if (! FileScope) fatal("No file scope"); newfile(FileScope->sc_definedby->sy_idf); break; case N_SLINE: