Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 2fe1658

Browse files
authored
[MLIR][Linalg] Harden parsing Linalg named ops (#145337)
This thread through proper error handling / reporting capabilities to avoid hitting llvm_unreachable while parsing linalg ops. Fixes #132755 Fixes #132740 Fixes #129185
1 parent 7442670 commit 2fe1658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/CAPI/Dialect/Linalg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void mlirLinalgFillBuiltinNamedOpRegion(MlirOperation mlirOp) {
3838
Region &region = op->getRegion(0);
3939
Block *body = b.createBlock(&region, /*insertPt=*/{}, argTypes, argLocs);
4040
b.setInsertionPointToStart(body);
41-
fun(b, *body, op->getAttrs());
41+
fun(b, *body, op->getAttrs(), /*emitError=*/{});
4242
}
4343

4444
MLIR_CAPI_EXPORTED bool mlirLinalgIsAContractionOp(MlirOperation op) {

0 commit comments

Comments
 (0)