================
@@ -3029,6 +3038,9 @@ void LoweringPreparePass::runOnOperation() {
if (isa<::mlir::ModuleOp>(op))
mlirModule = cast<::mlir::ModuleOp>(op);
+ if (mlirModule)
----------------
koparasy wrote:
It's always a ModuleOp, this pass only runs from the CIRGen pipeline (added at
module scope) and isn't registered in cir-opt. Switched the ifs to asserts.
https://github.com/llvm/llvm-project/pull/219078
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits