Fix for br1025 : support nested scopes in root level tasks/functions.

(cherry picked from commit 85fa24fa58)
This commit is contained in:
Martin Whitaker 2017-10-04 21:31:56 +01:00
parent 95d3579509
commit 6b11df1999
1 changed files with 7 additions and 0 deletions

View File

@ -281,6 +281,13 @@ ivl_scope_t dll_target::find_scope(ivl_design_s &des, const NetScope*cur)
return scope;
}
for (map<const NetScope*,ivl_scope_t>::iterator idx = des.root_tasks.begin()
; idx != des.root_tasks.end() ; ++ idx) {
ivl_scope_t scope = find_scope_from_root(idx->second, cur);
if (scope)
return scope;
}
return 0;
}