[all-commits] [llvm/llvm-project] b59d67: [Assignment Tracking] Fix faulty assertion inside ...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Wed Apr 26 03:15:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b59d672ed489ddb3373db62be168bb0926c4f5f3
https://github.com/llvm/llvm-project/commit/b59d672ed489ddb3373db62be168bb0926c4f5f3
Author: OCHyams <orlando.hyams at sony.com>
Date: 2023-04-26 (Wed, 26 Apr 2023)
Changed paths:
M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
Log Message:
-----------
[Assignment Tracking] Fix faulty assertion inside std::sort predicate
The vectors being sorted here shouldn't contain duplicate entries. Prior to
this patch this was checked with an assert within the `std::sort`
predicate. However, `std::sort` may compare an element against itself which
causes the assert to fire (false positive). Move the assert outside of the sort
predicate to avoid such issues.
Reviewed By: StephenTozer
Differential Revision: https://reviews.llvm.org/D149045
More information about the All-commits
mailing list