diff options
author | Greg Clayton <gclayton@apple.com> | 2012-07-03 20:52:00 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-07-03 20:52:00 +0000 |
commit | d7331f2acbc25557e5a7feca3fb59fae1505ad18 (patch) | |
tree | 02e942361feede6d51d883b148d74831a6d9b25b | |
parent | b601c96892254f06c64e2376cfd124e461586975 (diff) | |
download | bcm5719-llvm-d7331f2acbc25557e5a7feca3fb59fae1505ad18.tar.gz bcm5719-llvm-d7331f2acbc25557e5a7feca3fb59fae1505ad18.zip |
Improved the name comparing logic a bit.
llvm-svn: 159685
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h index 85c97f1c68f..accd3446317 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h @@ -46,9 +46,11 @@ public: bool NameMatches (const Entry& rhs) const { - if (name && rhs.name) + if (name == rhs.name) + return true; + else if (name && rhs.name) return strcmp(name, rhs.name) == 0; - return name == NULL && rhs.name == NULL; + return false; } // Test operator |