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 D74355
[ubsan] Null-check and adjust TypeLoc before using it vsk on Feb 10 2020, 1:38 PM. Authored by
Details Null-check and adjut a TypeLoc before casting it to a FunctionTypeLoc. rdar://59263039
Diff Detail
Event Timeline |