[all-commits] [llvm/llvm-project] a00b0f: Fix false negative when value initializing a field...

higher-performance via All-commits all-commits at lists.llvm.org
Fri Jan 31 17:53:32 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: a00b0f99237987a3e6983ff6b4a3f0e2f560b31a
      https://github.com/llvm/llvm-project/commit/a00b0f99237987a3e6983ff6b4a3f0e2f560b31a
  Author: higher-performance <higher.performance.github at gmail.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/SemaCXX/uninitialized.cpp

  Log Message:
  -----------
  Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (#124329)

It turns out we weren't handling one case: the value-initialization of a
field inside a struct.

I'm not sure why this falls under `IK_Direct` rather than `IK_Value` in
Clang, but it seems to work.

(cherry picked from commit 20fd7df0b847bb46aac2f0b5b71d242220027cbc)



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