[Mlir-commits] [mlir] 1ebe738 - [mlir][sparse] fix crash due to different std::sort implementation. (#69236)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 16 11:35:15 PDT 2023
Author: Peiming Liu
Date: 2023-10-16T11:35:09-07:00
New Revision: 1ebe73821f4cefa48d7e3d24e62303412ab9ad25
URL: https://github.com/llvm/llvm-project/commit/1ebe73821f4cefa48d7e3d24e62303412ab9ad25
DIFF: https://github.com/llvm/llvm-project/commit/1ebe73821f4cefa48d7e3d24e62303412ab9ad25.diff
LOG: [mlir][sparse] fix crash due to different std::sort implementation. (#69236)
Added:
Modified:
mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h b/mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h
index 0d95c60a08689d2..5e57facaf2376f6 100644
--- a/mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h
+++ b/mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h
@@ -531,7 +531,7 @@ class SparseTensorStorage final : public SparseTensorStorageBase {
continue;
return coordinates[l][lhs] < coordinates[l][rhs];
}
- assert(false && "duplicate coordinates");
+ assert(lhs == rhs && "duplicate coordinates");
return false;
});
More information about the Mlir-commits
mailing list