[all-commits] [llvm/llvm-project] a01307: [clang] Fix false positive -Wmissing-field-initial...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Tue Dec 12 23:48:45 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a01307a6ee788fc6ac2e09e58f0f52e5666def86
https://github.com/llvm/llvm-project/commit/a01307a6ee788fc6ac2e09e58f0f52e5666def86
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2023-12-13 (Wed, 13 Dec 2023)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
M clang/test/Sema/missing-field-initializers.c
M clang/test/SemaCXX/cxx2a-initializer-aggregates.cpp
Log Message:
-----------
[clang] Fix false positive -Wmissing-field-initializer for anonymous unions (#70829)
Normally warning is not reported when a field has default initializer.
Do so for anonymous unions with default initializers as well. No release
note since it is a regression in clang 18.
Fixes https://github.com/llvm/llvm-project/issues/70384
More information about the All-commits
mailing list