Fix subtle bug in scope checking.

This check looks to be defined to check the child scope not the
top level scope.
This commit is contained in:
Cary R 2009-08-31 11:33:00 -07:00 committed by Stephen Williams
parent 9669ccd011
commit 872962ef18
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static void elaborate_sig_funcs(Design*des, NetScope*scope,
hname_t use_name ( (*cur).first );
NetScope*fscope = scope->child(use_name);
if (scope == 0) {
if (fscope == 0) {
cerr << (*cur).second->get_fileline() << ": internal error: "
<< "Child scope for function " << (*cur).first
<< " missing in " << scope_path(scope) << "." << endl;