[all-commits] [llvm/llvm-project] ad9a95: [clang] Fix -Wuninitialized for values passed by c...
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Mon Jul 14 16:03:29 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad9a9537e6222853da3966abd978548f0b62eab8
https://github.com/llvm/llvm-project/commit/ad9a9537e6222853da3966abd978548f0b62eab8
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2025-07-14 (Mon, 14 Jul 2025)
Changed paths:
M clang/lib/Analysis/UninitializedValues.cpp
M clang/test/SemaCXX/uninitialized.cpp
Log Message:
-----------
[clang] Fix -Wuninitialized for values passed by const pointers (#147221)
This enables producing a "variable is uninitialized" warning when a
value is passed to a pointer-to-const argument:
```
void foo(const int *);
void test() {
int *v;
foo(v);
}
```
Fixes #37460
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