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:
parent
e1b4d531a1
commit
f2a81cf660
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue