[Mlir-commits] [mlir] [mlir][bytecode] Avoid crash when test dialect version is missing (PR #170173)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Dec 5 00:27:54 PST 2025
================
@@ -166,8 +166,8 @@ struct TestBytecodeRoundtripPass
Type &entry) -> LogicalResult {
// Get test dialect version from the version map.
auto versionOr = reader.getDialectVersion<test::TestDialect>();
- assert(succeeded(versionOr) && "expected reader to be able to access "
- "the version for test dialect");
+ if (failed(versionOr))
+ return success();
----------------
ftynse wrote:
Should this be failure?
https://github.com/llvm/llvm-project/pull/170173
More information about the Mlir-commits
mailing list