diff --git a/mlir/test/lib/Transforms/TestDiagnosticHandler.cpp b/mlir/test/lib/Transforms/TestDiagnosticHandler.cpp --- a/mlir/test/lib/Transforms/TestDiagnosticHandler.cpp +++ b/mlir/test/lib/Transforms/TestDiagnosticHandler.cpp @@ -14,11 +14,11 @@ namespace { struct TestSourceMgrDiagnosticHandler : public SourceMgrDiagnosticHandler { explicit TestSourceMgrDiagnosticHandler(llvm::SourceMgr &mgr, - MLIRContext *ctx) + MLIRContext *ctx) : SourceMgrDiagnosticHandler(mgr, ctx, llvm::outs()) {} void emitTestDiagnostic(Operation *op) { - Diagnostic diag(op->getLoc(), DiagnosticSeverity::Note); + Diagnostic diag(op->getLoc(), DiagnosticSeverity::Note); emitDiagnostic(diag); } }; @@ -28,7 +28,7 @@ void runOnFunction() override { llvm::SourceMgr fileSourceMgr; - TestSourceMgrDiagnosticHandler diagHandler(fileSourceMgr, &getContext()); + TestSourceMgrDiagnosticHandler diagHandler(fileSourceMgr, &getContext()); getFunction().walk([&](Operation *op) { if (isa(op) || op->isKnownTerminator()) return; @@ -40,4 +40,4 @@ } // end anonymous namespace static PassRegistration pass("test-diagnostic-handler", - "emit diagnostic for ops"); + "emit diagnostic for ops");