diff options
author | Jun Zhang <jun@junz.org> | 2022-09-28 12:30:02 +0800 |
---|---|---|
committer | Jun Zhang <jun@junz.org> | 2022-09-28 12:30:02 +0800 |
commit | 89e56e732d5e89d8715a501158793ac305bc4b70 (patch) | |
tree | 1835e7f80187990994df1f89f7dd149e43019d9a /llvm/unittests/Support/CommandLineTest.cpp | |
parent | eb53416d0f4ac1e0c76f1a2546474390481092e9 (diff) | |
download | llvm-89e56e732d5e89d8715a501158793ac305bc4b70.zip llvm-89e56e732d5e89d8715a501158793ac305bc4b70.tar.gz llvm-89e56e732d5e89d8715a501158793ac305bc4b70.tar.bz2 |
[Clang] Don't warn if deferencing void pointers in unevaluated context
After https://reviews.llvm.org/D134461, Clang will diagnose a warning if
trying to deference void pointers in C mode. However, this causes a lot
of noises when compiling a 5.19.11 Linux kernel.
This patch reduces the warning by marking deferencing void pointers in
unevaluated context OK, like `sizeof(*void_ptr)`, `typeof(*void_ptr)`
and etc.
Fixes https://github.com/ClangBuiltLinux/linux/issues/1720
Signed-off-by: Jun Zhang <jun@junz.org>
Differential Revision: https://reviews.llvm.org/D134702
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions