[all-commits] [llvm/llvm-project] f3c774: [Clang][Sema] Fix -Whigher-precision-for-complex-d...
Mészáros Gergely via All-commits
all-commits at lists.llvm.org
Tue Apr 15 23:03:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3c77445791b510858561cb424ffa1cd7513250b
https://github.com/llvm/llvm-project/commit/f3c77445791b510858561cb424ffa1cd7513250b
Author: Mészáros Gergely <gergely.meszaros at intel.com>
Date: 2025-04-16 (Wed, 16 Apr 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaExpr.cpp
A clang/test/Sema/complex-div-warn-higher-precision.cpp
Log Message:
-----------
[Clang][Sema] Fix -Whigher-precision-for-complex-division (#131477)
- Fix false positive when divisor is a real number.
- Fix false negative when divident is real, but divisor is complex.
- Fix false negative when due to promotion the division is performed in
higher precision than the divident.
- Fix false negative in divide and assign (`a /= b`).
Fixes: #131127
---------
Co-authored-by: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
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