[all-commits] [llvm/llvm-project] 9b8297: [analyzer] Do not destruct fields of unions (#122330)
Jameson Nash via All-commits
all-commits at lists.llvm.org
Thu Feb 6 23:02:00 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b8297bc7ea8f217a3f701afedd2c953a4ad7867
https://github.com/llvm/llvm-project/commit/9b8297bc7ea8f217a3f701afedd2c953a4ad7867
Author: Jameson Nash <vtjnash at gmail.com>
Date: 2025-02-07 (Fri, 07 Feb 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Analysis/CFG.cpp
M clang/test/Analysis/NewDelete-checker-test.cpp
A clang/test/Analysis/dtor-union.cpp
Log Message:
-----------
[analyzer] Do not destruct fields of unions (#122330)
The C++ standard prohibits this implicit destructor call, leading to
incorrect reports from clang-analyzer. This causes projects that use
std::option (including llvm) to fail the cplusplus.NewDelete test
incorrectly when run through the analyzer.
Fixes #119415
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