Fix subtle bug in scope checking.

This check looks to be defined to check the child scope not the
top level scope.
(cherry picked from commit 872962ef18)
This commit is contained in:
Cary R 2009-08-31 11:33:00 -07:00 committed by Stephen Williams
parent e1b4d531a1
commit f2a81cf660
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;