[Lldb-commits] [lldb] r315200 - [DWARFDIE] Rewrite `operator !=` using `operator ==`. NFCI.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 8 17:18:45 PDT 2017
Author: davide
Date: Sun Oct 8 17:18:45 2017
New Revision: 315200
URL: http://llvm.org/viewvc/llvm-project?rev=315200&view=rev
Log:
[DWARFDIE] Rewrite `operator !=` using `operator ==`. NFCI.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp?rev=315200&r1=315199&r2=315200&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp Sun Oct 8 17:18:45 2017
@@ -458,5 +458,5 @@ bool operator==(const DWARFDIE &lhs, con
}
bool operator!=(const DWARFDIE &lhs, const DWARFDIE &rhs) {
- return lhs.GetDIE() != rhs.GetDIE() || lhs.GetCU() != rhs.GetCU();
+ return !(lhs == rhs);
}
More information about the lldb-commits
mailing list