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 7804189 commit afc02e6Copy full SHA for afc02e6
lib/API/api.cpp
@@ -503,9 +503,11 @@ diagEngineHandler(Diagnostic &diagnostic,
503
qssc_severity = qssc::Severity::Info;
504
}
505
// emit diagnostic cast to void to discard result as it is not needed here
506
- (void)qssc::emitDiagnostic(std::move(diagnosticCb), qssc_severity,
507
- qssc::ErrorCategory::QSSCompilationFailure,
508
- diagnostic.str());
+ if (qssc_severity == qssc::Severity::Error) {
+ (void)qssc::emitDiagnostic(std::move(diagnosticCb), qssc_severity,
+ qssc::ErrorCategory::QSSCompilationFailure,
509
+ diagnostic.str());
510
+ }
511
512
// emit to llvm::errs as well to mimic default handler
513
diagnostic.getLocation().print(llvm::errs());
0 commit comments