From 6b11df199994892e9e9b671d81bfe1ba194692ff Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 4 Oct 2017 21:31:56 +0100 Subject: [PATCH] Fix for br1025 : support nested scopes in root level tasks/functions. (cherry picked from commit 85fa24fa58021552e14ed68b6c5932503179cdd3) --- t-dll.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t-dll.cc b/t-dll.cc index c3ad49d0e..47ed90aaa 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -281,6 +281,13 @@ ivl_scope_t dll_target::find_scope(ivl_design_s &des, const NetScope*cur) return scope; } + for (map::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; }