[all-commits] [llvm/llvm-project] 7ce0f5: [clang][modules] Validate input file format for Ge...

Naveen Seth Hanig via All-commits all-commits at lists.llvm.org
Mon Apr 28 20:22:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ce0f5a9cc37345fee801736bded83081b61571b
      https://github.com/llvm/llvm-project/commit/7ce0f5a9cc37345fee801736bded83081b61571b
  Author: Naveen Seth Hanig <naveen.hanig at outlook.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/include/clang/Frontend/FrontendActions.h
    M clang/lib/Frontend/FrontendActions.cpp
    A clang/test/Modules/emit-module-interface-pcm-input.cpp

  Log Message:
  -----------
  [clang][modules] Validate input file format for GenerateModuleInterfaceAction (#132692) (#137711)

Fixes #132692.

`clang -cc1` crashes when generating a module interface with
`emit-module-interface` or `emit-reduced-module-interface` using an
input file which is already a precompiled module (`.pcm`) file.
This commit adds validation for the input file format and Clang will now
emit an error message instead of 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