aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2022-10-14 14:20:54 -0700
committerBill Wendling <morbo@google.com>2022-10-14 14:46:19 -0700
commit91b3823bd000b1a6ffde96a6363098f59307317a (patch)
treeeb97d0105f8689a3ac326c13f3c401bc3bcd6004 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent6eb205b25771739f9bd54dd3a55af8dfa0776ef7 (diff)
downloadllvm-91b3823bd000b1a6ffde96a6363098f59307317a.zip
llvm-91b3823bd000b1a6ffde96a6363098f59307317a.tar.gz
llvm-91b3823bd000b1a6ffde96a6363098f59307317a.tar.bz2
[clang][Sema] Use size of char in bits for void types
The extension that allows for pointer arithmetic on 'void' types treats the 'void' as a 'char'. We should use the 'char' size in bits instead of 1 (the number of bytes) to allow warning when pointer arithmetic would go out of bounds. Differential Revision: https://reviews.llvm.org/D135989
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions