[fix-swo-violations] Fix sort comparison function
Make sure CompareDisplays comparison function is a strict weak ordering by fixing compare(a, a) to return false. Using a comparator which is not a strict weak ordering is undefined behavior and crashes with _LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK enabled. Bug: None Change-Id: I62451b22b4649f7ab34cdeeec9a36481551d9ea8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4641969 Commit-Queue: Sparik Hayrapetyan <ust@google.com> Reviewed-by:Eugene Zemtsov <eugene@chromium.org> Cr-Commit-Position: refs/heads/main@{#1162688}
Loading
Please register or sign in to comment