[all-commits] [llvm/llvm-project] 20fd7d: Fix false negative when value initializing a field...
higher-performance via All-commits
all-commits at lists.llvm.org
Thu Jan 30 12:34:30 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20fd7df0b847bb46aac2f0b5b71d242220027cbc
https://github.com/llvm/llvm-project/commit/20fd7df0b847bb46aac2f0b5b71d242220027cbc
Author: higher-performance <higher.performance.github at gmail.com>
Date: 2025-01-30 (Thu, 30 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.
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