[all-commits] [llvm/llvm-project] ab9cd5: [Wunsafe-buffer-usage] False positives for & expre...
Malavika Samak via All-commits
all-commits at lists.llvm.org
Mon Feb 24 11:02:16 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab9cd53b86e84cc2db47d312232de4789c15adc4
https://github.com/llvm/llvm-project/commit/ab9cd53b86e84cc2db47d312232de4789c15adc4
Author: Malavika Samak <malavika.samak at gmail.com>
Date: 2025-02-25 (Tue, 25 Feb 2025)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-array.cpp
Log Message:
-----------
[Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (#112284)
Do not warn when a constant sized array is indexed with an expression
that contains bitwise and operation
involving constants and it always results in a bound safe access.
(rdar://136684050)
---------
Co-authored-by: MalavikaSamak <malavika2 at apple.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