[lld] [llvm] [clang] [LTO] Improve diagnostics handling when parsing module-level inline assembly (PR #75726)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 18 19:40:08 PST 2023


================
@@ -418,6 +418,8 @@ void BackendConsumer::anchor() { }
 } // namespace clang
 
 bool ClangDiagnosticHandler::handleDiagnostics(const DiagnosticInfo &DI) {
+  if (DI.getSeverity() == DS_Error)
+    HasErrors = true;
----------------
MaskRay wrote:

I created https://github.com/llvm/llvm-project/pull/75889 to improve this case a bit.

https://github.com/llvm/llvm-project/pull/75726


More information about the cfe-commits mailing list