Commit 51dd3ec
authored
[MLIR][OpenMP] Bail early in sortMapIndices if indices are the same (#169474)
If we are given the same index in the comparator callback, simply return
false. Otherwise we will end up adding invalid items to
occludedChildren, causing extra items to get removed that should not be,
resulting in failures that manifest in different forms (assertions, asan
failures, ubsan failures, etc.).1 parent e1b0873 commit 51dd3ec
File tree
1 file changed
+6
-0
lines changed- mlir/lib/Target/LLVMIR/Dialect/OpenMP
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4095 | 4095 | | |
4096 | 4096 | | |
4097 | 4097 | | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
4098 | 4104 | | |
4099 | 4105 | | |
4100 | 4106 | | |
| |||
0 commit comments