LTO: Ignore disabled diagnostic remarks
[oota-llvm.git] / lib / LTO / LTOCodeGenerator.cpp
index 1b6f905f0aca1df802cda3c4a82f679516516618..75ca56fbbe7333da15044b4dfc79f460948ea94e 100644 (file)
@@ -558,5 +558,5 @@ LTOCodeGenerator::setDiagnosticHandler(lto_diagnostic_handler_t DiagHandler,
     return Context.setDiagnosticHandler(nullptr, nullptr);
   // Register the LTOCodeGenerator stub in the LLVMContext to forward the
   // diagnostic to the external DiagHandler.
-  Context.setDiagnosticHandler(LTOCodeGenerator::DiagnosticHandler, this);
+  Context.setDiagnosticHandler(LTOCodeGenerator::DiagnosticHandler, this, true);
 }