Skip to content

Commit 1ebe738

Browse files
authored
[mlir][sparse] fix crash due to different std::sort implementation. (#69236)
1 parent 5b07de1 commit 1ebe738

File tree

1 file changed

+1
-1
lines changed
  • mlir/include/mlir/ExecutionEngine/SparseTensor

1 file changed

+1
-1
lines changed

mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ class SparseTensorStorage final : public SparseTensorStorageBase {
531531
continue;
532532
return coordinates[l][lhs] < coordinates[l][rhs];
533533
}
534-
assert(false && "duplicate coordinates");
534+
assert(lhs == rhs && "duplicate coordinates");
535535
return false;
536536
});
537537

0 commit comments

Comments
 (0)