HomePhabricator

[ubsan] Null-check and adjust TypeLoc before using it

Authored by vsk on Feb 10 2020, 1:10 PM.

Description

[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

Details

Committed
vskFeb 10 2020, 2:10 PM
Differential Revision
D74355: [ubsan] Null-check and adjust TypeLoc before using it
Parents
rG7683a084de6b: Remove lit feature object-emission
Branches
Unknown
Tags
Unknown