[all-commits] [llvm/llvm-project] dc245a: [CIR] Fixup 'zero' branch of Null Initialization (...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Sep 22 13:48:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc245a0c5efb1fdc5344c1c8964323ae5219cf9c
      https://github.com/llvm/llvm-project/commit/dc245a0c5efb1fdc5344c1c8964323ae5219cf9c
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/test/CIR/CodeGen/class.cpp

  Log Message:
  -----------
  [CIR] Fixup 'zero' branch of Null Initialization (#225490)

The zero branch has a test for an NYI based on whether the thing is a
VLA or not. However, classic codegen uses 'dyn_cast_or_null', and we
used 'isa', so a nullptr caused an assert. This patch fixes it.



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