diff options
author | Vedant Kumar <vsk@apple.com> | 2020-02-10 13:10:47 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-02-10 14:10:06 -0800 |
commit | 8b81ebfe7eba089ed2016d523cc5ee9d05e957a7 (patch) | |
tree | b17dbe5a463c053f41365de7c68c811e299ee0d2 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 7683a084de6bd2637f2351f53389df8b610566cf (diff) | |
download | llvm-8b81ebfe7eba089ed2016d523cc5ee9d05e957a7.zip llvm-8b81ebfe7eba089ed2016d523cc5ee9d05e957a7.tar.gz llvm-8b81ebfe7eba089ed2016d523cc5ee9d05e957a7.tar.bz2 |
[ubsan] Null-check and adjust TypeLoc before using it
Null-check and adjut a TypeLoc before casting it to a FunctionTypeLoc.
This fixes a crash in -fsanitize=nullability-return, and also makes the
location of the nonnull type available when the return type is adjusted.
rdar://59263039
Differential Revision: https://reviews.llvm.org/D74355
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions