Skip to content

Commit aebeca4

Browse files
committed
[lldb] Rely on operator== for std::vector (NFC)
Rely on operator== for std::vector instead of comparing the elements in the vector element by element, (cherry picked from commit a37e475)
1 parent e49951f commit aebeca4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lldb/include/lldb/Core/FormatEntity.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,6 @@ struct Entry {
191191
return false;
192192
if (printf_format != rhs.printf_format)
193193
return false;
194-
const size_t n = children.size();
195-
const size_t m = rhs.children.size();
196-
for (size_t i = 0; i < std::min<size_t>(n, m); ++i) {
197-
if (!(children[i] == rhs.children[i]))
198-
return false;
199-
}
200194
if (children != rhs.children)
201195
return false;
202196
if (type != rhs.type)

0 commit comments

Comments
 (0)