summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/rld-dwarf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/rld-dwarf.cpp')
-rw-r--r--rtemstoolkit/rld-dwarf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-dwarf.cpp
index acb4fd4..2fce0e4 100644
--- a/rtemstoolkit/rld-dwarf.cpp
+++ b/rtemstoolkit/rld-dwarf.cpp
@@ -2167,12 +2167,11 @@ namespace rld
r = cu.get_source (addr, line);
if (r)
{
- if (match.valid () &&
- (match.is_an_end_sequence () || !!line.is_an_end_sequence ()))
+ if (!match.valid ())
{
match = line;
}
- else
+ else if (match.is_an_end_sequence () || !line.is_an_end_sequence ())
{
match = line;
}