diff --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp --- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp +++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp @@ -83,10 +83,10 @@ // to track down whether an error is coming from our code vs somewhere else // in MLIR.) #define FATAL(...) \ - { \ + do { \ fprintf(stderr, "SparseTensorUtils: " __VA_ARGS__); \ exit(1); \ - } + } while (0) // TODO: try to unify this with `SparseTensorFile::assertMatchesShape` // which is used by `openSparseTensorCOO`. It's easy enough to resolve