Skip to content

Commit

Permalink
Fix broken search where member names accidentally match variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveicarus committed Feb 4, 2014
1 parent 52a9fdd commit a012406
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions symbol_search.cc
Expand Up @@ -58,9 +58,9 @@ struct symbol_search_results {
NetEvent*eve;
};

bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
pform_name_t path, struct symbol_search_results*res,
NetScope*start_scope = 0)
static bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
pform_name_t path, struct symbol_search_results*res,
NetScope*start_scope = 0)
{
assert(scope);
bool prefix_scope = false;
Expand Down Expand Up @@ -100,6 +100,9 @@ bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
"`" << path_tail.name << "' in path `" << path << "'" << endl;
des->errors += 1;
}
} else {
// Prefix is present, but is NOT a scope. Fail!
return false;
}
}

Expand Down

0 comments on commit a012406

Please sign in to comment.