We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb92be commit 6b70652Copy full SHA for 6b70652
mlir/lib/IR/MLIRContext.cpp
@@ -410,9 +410,10 @@ void MLIRContext::appendDialectRegistry(const DialectRegistry ®istry) {
410
if (registry.isSubsetOf(impl->dialectsRegistry))
411
return;
412
413
- assert(impl->multiThreadedExecutionContext == 0 &&
414
- "appending to the MLIRContext dialect registry while in a "
415
- "multi-threaded execution context");
+ assert(!impl->threadingIsEnabled ||
+ impl->multiThreadedExecutionContext == 0 &&
+ "appending to the MLIRContext dialect registry while in a "
416
+ "multi-threaded execution context");
417
registry.appendTo(impl->dialectsRegistry);
418
419
// For the already loaded dialects, apply any possible extensions immediately.
0 commit comments