diff --git a/mlir/lib/ExecutionEngine/SparseTensor/File.cpp b/mlir/lib/ExecutionEngine/SparseTensor/File.cpp --- a/mlir/lib/ExecutionEngine/SparseTensor/File.cpp +++ b/mlir/lib/ExecutionEngine/SparseTensor/File.cpp @@ -24,7 +24,6 @@ //===----------------------------------------------------------------------===// #include "mlir/ExecutionEngine/SparseTensor/File.h" -#include "llvm/Support/ErrorHandling.h" #include #include @@ -108,8 +107,10 @@ // So we allow implicitly converting the stored values to both // integer and floating primary-types. return isRealPrimaryType(valTy); + default: + MLIR_SPARSETENSOR_FATAL("Unknown ValueKind: %d\n", + static_cast(valueKind_)); } - llvm_unreachable("unknown ValueKind"); } /// Helper to convert C-style strings (i.e., '\0' terminated) to lower case.