[all-commits] [llvm/llvm-project] 68bfb1: [Clang] Fix crash when building a module with CC_P...

Bob Wilson via All-commits all-commits at lists.llvm.org
Tue Apr 22 10:27:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68bfb17f1dd15f3b0b2754c8bce1d1c395e553c1
      https://github.com/llvm/llvm-project/commit/68bfb17f1dd15f3b0b2754c8bce1d1c395e553c1
  Author: Bob Wilson <bob.wilson at apple.com>
  Date:   2025-04-22 (Tue, 22 Apr 2025)

  Changed paths:
    M clang/lib/Frontend/HeaderIncludeGen.cpp
    A clang/test/Preprocessor/print-header-crash.modulemap

  Log Message:
  -----------
  [Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (#136227)

There is no main file when building a module, so the code in
HeaderIncludesJSONCallback::EndOfMainFile() needs to check for that to
avoid crashing.



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