[all-commits] [llvm/llvm-project] 565f3f: [Dwarf] Don't crash in dwarf::isC() on vendor-defi...

Matt Davis via All-commits all-commits at lists.llvm.org
Tue Sep 22 06:15:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 565f3f73eef2220bfa80a1894bab29fd6e579a2d
      https://github.com/llvm/llvm-project/commit/565f3f73eef2220bfa80a1894bab29fd6e579a2d
  Author: Matt Davis <mattd at nvidia.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/Dwarf.h
    A llvm/test/DebugInfo/X86/unknown-source-language.ll

  Log Message:
  -----------
  [Dwarf] Don't crash in dwarf::isC() on vendor-defined languages (#223739)

isC() enumerates SourceLanguage and falls off the end of the switch into
llvm_unreachable("Unknown language kind."). DW_LANG_lo_user and
DW_LANG_hi_user are both explicit cases, but every vendor-defined code
strictly between them is not, so any of them aborts an asserts-enabled
build.

Assisted-by: LLM

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply at anthropic.com>



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