diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -1803,14 +1803,16 @@ ss << "sx"; else ss << size << "x"; - appendMangledType(ss, memref.getElementType()); + if (failed(appendMangledType(ss, memref.getElementType()))) + return failure(); return success(); } if (auto vec = t.dyn_cast()) { ss << "vector"; llvm::interleave( vec.getShape(), [&](int64_t i) { ss << i; }, [&]() { ss << "x"; }); - appendMangledType(ss, vec.getElementType()); + if (failed(appendMangledType(ss, vec.getElementType()))) + return failure(); return success(); } else if (t.isSignlessIntOrIndexOrFloat()) { ss << t;