diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-01-31 19:06:21 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-01-31 19:08:17 -0800 |
commit | 0130b6cb5a8d94511e2bb09ac2f5a613a59f70b4 (patch) | |
tree | f39633cc1ea98c67c40e64559f76c96af4921619 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | dc1d43cfa0294dea6713aa825d287ddaa3ac971b (diff) | |
download | llvm-0130b6cb5a8d94511e2bb09ac2f5a613a59f70b4.zip llvm-0130b6cb5a8d94511e2bb09ac2f5a613a59f70b4.tar.gz llvm-0130b6cb5a8d94511e2bb09ac2f5a613a59f70b4.tar.bz2 |
Don't assume a reference refers to at least sizeof(T) bytes.
When T is a class type, only nvsize(T) bytes need be accessible through
the reference. We had matching bugs in the application of the
dereferenceable attribute and in -fsanitize=undefined.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions