[all-commits] [llvm/llvm-project] f33fb0: [clang] Don't fail `ExecuteCompilerInvocation()` d...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Mon Sep 15 14:30:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f33fb0d7b2af203c42d0e7096b29560dda3e71ce
      https://github.com/llvm/llvm-project/commit/f33fb0d7b2af203c42d0e7096b29560dda3e71ce
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp

  Log Message:
  -----------
  [clang] Don't fail `ExecuteCompilerInvocation()` due to caller errors (#158695)

This PR changes the behavior of `clang::ExecuteCompilerInvocation()` so
that it only returns early when the `DiagnosticsEngine` emitted errors
**within** the function. Handling errors emitted before the function got
called is a responsibility of the caller. Necessary for #158381.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list