[all-commits] [llvm/llvm-project] 329af7: [clang] Fix array filler lowering for _BitInt arra...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Thu Apr 2 05:02:07 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 329af7d2b785e0c7032427fdd11881f8c7280a52
      https://github.com/llvm/llvm-project/commit/329af7d2b785e0c7032427fdd11881f8c7280a52
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2026-04-02 (Thu, 02 Apr 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/test/CodeGenCXX/ext-int.cpp

  Log Message:
  -----------
  [clang] Fix array filler lowering for _BitInt arrays (#189954)

Sometimes we use array of bytes to represent `_BitInt` types in memory.
When this is the case the lowered array filler expression reaches
`ConstantEmitter::emitForMemory` already with memory type which will be
array of i8 instead of a single iN, so `cast<llvm::ConstantInt>` was
failing within `ConstantEmitter::emitForMemory`. This patch fixes the
assertion failure by not attempting any type changes if the type is
right already.

Fixes https://github.com/llvm/llvm-project/issues/189643

Assisted-by: claude in FileCheck CHECK lines fixing



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