Fix for pr2271367.

This patch fixes a bug introduced by one of the checks for illegal
use of automatically allocated variables.
This commit is contained in:
Martin Whitaker 2008-11-12 23:33:39 +00:00 committed by Stephen Williams
parent 256454960c
commit 69428bb050
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope,
scope = des->find_scope(scope, path_list); scope = des->find_scope(scope, path_list);
if (scope->is_auto() && li) { if (scope && scope->is_auto() && li) {
cerr << li->get_fileline() << ": error: Hierarchical " cerr << li->get_fileline() << ": error: Hierarchical "
"reference to automatically allocated item " "reference to automatically allocated item "
"`" << key << "' in path `" << path << "'" << endl; "`" << key << "' in path `" << path << "'" << endl;