From 69428bb0506606a1cf8119d696617708f9f71537 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 12 Nov 2008 23:33:39 +0000 Subject: [PATCH] Fix for pr2271367. This patch fixes a bug introduced by one of the checks for illegal use of automatically allocated variables. --- symbol_search.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symbol_search.cc b/symbol_search.cc index 0355fb6bb..8a50ae1c6 100644 --- a/symbol_search.cc +++ b/symbol_search.cc @@ -59,7 +59,7 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope, scope = des->find_scope(scope, path_list); - if (scope->is_auto() && li) { + if (scope && scope->is_auto() && li) { cerr << li->get_fileline() << ": error: Hierarchical " "reference to automatically allocated item " "`" << key << "' in path `" << path << "'" << endl;