Followup to D133835 for fixing the warning on LLVM's Windows buildbot
Reviewed By: aartbik, Peiming, stella.stamenova
Differential Revision: https://reviews.llvm.org/D134925
/// as well as providing the buffers and methods for parsing those headers.
class SparseTensorFile final {
public:
- enum class ValueKind {
+ enum class ValueKind : uint8_t {
// The value before calling `readHeader`.
kInvalid = 0,
// Values that can be set by `readMMEHeader`.
// 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<uint8_t>(valueKind_));
}
}