summaryrefslogtreecommitdiffstats
path: root/utils/regtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-09-09 13:10:18 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-09-21 00:31:18 +0100
commit6f7ee0bb7ce507902f571f823fe173f07ec7e32f (patch)
treedb5e05ed24578581f2136ec6ae2dcaa7d8aa4abd /utils/regtools
parent7b1bcae879305da138bb3e08d04735b54266c537 (diff)
downloadrockbox-6f7ee0bb7ce507902f571f823fe173f07ec7e32f.tar.gz
rockbox-6f7ee0bb7ce507902f571f823fe173f07ec7e32f.tar.bz2
rockbox-6f7ee0bb7ce507902f571f823fe173f07ec7e32f.zip
regtools: fix library bug when checking if a reference is valid or not
Change-Id: I8adea40d2fa7c1a26f1975d987233249f61af8ef
Diffstat (limited to 'utils/regtools')
-rw-r--r--utils/regtools/lib/soc_desc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.cpp b/utils/regtools/lib/soc_desc.cpp
index 3238c4de73..ef8aeb5a17 100644
--- a/utils/regtools/lib/soc_desc.cpp
+++ b/utils/regtools/lib/soc_desc.cpp
@@ -1511,7 +1511,7 @@ node_inst_t::node_inst_t()
bool node_inst_t::valid() const
{
- return is_root() || get() != 0;
+ return (is_root() && node().valid()) || get() != 0;
}
void node_inst_t::reset()