diff options
Diffstat (limited to 'utils/regtools/lib/soc_desc.cpp')
-rw-r--r-- | utils/regtools/lib/soc_desc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.cpp b/utils/regtools/lib/soc_desc.cpp index 1cfbdac1f4..113d6b1dd4 100644 --- a/utils/regtools/lib/soc_desc.cpp +++ b/utils/regtools/lib/soc_desc.cpp @@ -1035,7 +1035,7 @@ namespace std::vector< node_t > *get_children(node_ref_t node) { if(node.is_root()) - return &node.soc().get()->node; + return node.soc().valid() ? &node.soc().get()->node : 0; node_t *n = node.get(); return n == 0 ? 0 : &n->node; } |