Skip to content

Commit 510ec20

Browse files
authored
[mlir] fix IRPrinterInstrumentation to use the user-provided IRPrinting config (#70023)
1 parent bddd8f4 commit 510ec20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Pass/IRPrinting.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ void IRPrinterInstrumentation::runAfterPassFailed(Pass *pass, Operation *op) {
119119
config->printAfterIfEnabled(pass, op, [&](raw_ostream &out) {
120120
out << formatv("// -----// IR Dump After {0} Failed ({1})", pass->getName(),
121121
pass->getArgument());
122-
printIR(op, config->shouldPrintAtModuleScope(), out, OpPrintingFlags());
122+
printIR(op, config->shouldPrintAtModuleScope(), out,
123+
config->getOpPrintingFlags());
123124
out << "\n\n";
124125
});
125126
}

0 commit comments

Comments
 (0)