[all-commits] [llvm/llvm-project] 4b0da1: [TableGen] Fix crash of !switch parse in defvar co...

Tomer Shafir via All-commits all-commits at lists.llvm.org
Sun Jun 7 09:19:29 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b0da1a1d71040c67858a739e29ef062f63d9efd
      https://github.com/llvm/llvm-project/commit/4b0da1a1d71040c67858a739e29ef062f63d9efd
  Author: Tomer Shafir <tomer.shafir8 at gmail.com>
  Date:   2026-06-07 (Sun, 07 Jun 2026)

  Changed paths:
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/test/TableGen/switch.td

  Log Message:
  -----------
  [TableGen] Fix crash of !switch parse in defvar context (#202119)

`ListInit::convertInitializerTo()` and similar variants do not perform a
nullptr check. Adding a check to the caller parse method and a test case
for defvar.



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