aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2022-09-28 12:30:02 +0800
committerJun Zhang <jun@junz.org>2022-09-28 12:30:02 +0800
commit89e56e732d5e89d8715a501158793ac305bc4b70 (patch)
tree1835e7f80187990994df1f89f7dd149e43019d9a /llvm/lib/Support/CommandLine.cpp
parenteb53416d0f4ac1e0c76f1a2546474390481092e9 (diff)
downloadllvm-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/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions