[Mlir-commits] [mlir] 089868c - [mlir][sparse] Improving error messages for MLIR_SPARSETENSOR_FATAL
wren romano
llvmlistbot at llvm.org
Fri Sep 30 17:38:42 PDT 2022
Author: wren romano
Date: 2022-09-30T17:38:32-07:00
New Revision: 089868ce16f9fd1abd9efd34ac58b196cfd9adf6
URL: https://github.com/llvm/llvm-project/commit/089868ce16f9fd1abd9efd34ac58b196cfd9adf6
DIFF: https://github.com/llvm/llvm-project/commit/089868ce16f9fd1abd9efd34ac58b196cfd9adf6.diff
LOG: [mlir][sparse] Improving error messages for MLIR_SPARSETENSOR_FATAL
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D135000
Added:
Modified:
mlir/include/mlir/ExecutionEngine/SparseTensor/ErrorHandling.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/ExecutionEngine/SparseTensor/ErrorHandling.h b/mlir/include/mlir/ExecutionEngine/SparseTensor/ErrorHandling.h
index f9159502767c..e0385ffdd84f 100644
--- a/mlir/include/mlir/ExecutionEngine/SparseTensor/ErrorHandling.h
+++ b/mlir/include/mlir/ExecutionEngine/SparseTensor/ErrorHandling.h
@@ -37,6 +37,7 @@
#define MLIR_SPARSETENSOR_FATAL(...) \
do { \
fprintf(stderr, "SparseTensorUtils: " __VA_ARGS__); \
+ fprintf(stderr, "SparseTensorUtils: at %s:%d\n", __FILE__, __LINE__); \
exit(1); \
} while (0)
More information about the Mlir-commits
mailing list