[Preprocessor] Fix crash emitting note with framework location for "file not found" error.A filename can be remapped with a header map to point to a frameworkheader and we can find the correspondi
[Preprocessor] Fix crash emitting note with framework location for "file not found" error.A filename can be remapped with a header map to point to a frameworkheader and we can find the corresponding framework without the header.But if the original filename doesn't have a remapped framework name,we'll fail to find its location and will dereference a null pointerduring diagnostics emission.Fix by tracking remappings better and emit the note only if a frameworkis found before any of the remappings.rdar://problem/48883447Reviewers: arphaman, erik.pilkington, jkorousReviewed By: arphamanSubscribers: dexonsmith, cfe-commitsDifferential Revision: https://reviews.llvm.org/D61707llvm-svn: 361779
show more ...