diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2019-05-27 19:15:30 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2019-05-27 19:15:30 +0000 |
commit | e32ff096858578f526b6d05ab97c8f083f2e1834 (patch) | |
tree | 5d29321aa293c805bb59fd1f8b7b81abb1ce4e73 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | e13ae3e4d82b95ca1086f658de00402ffb6b128e (diff) | |
download | bcm5719-llvm-e32ff096858578f526b6d05ab97c8f083f2e1834.tar.gz bcm5719-llvm-e32ff096858578f526b6d05ab97c8f083f2e1834.zip |
[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 framework
header 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 pointer
during diagnostics emission.
Fix by tracking remappings better and emit the note only if a framework
is found before any of the remappings.
rdar://problem/48883447
Reviewers: arphaman, erik.pilkington, jkorous
Reviewed By: arphaman
Subscribers: dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D61707
llvm-svn: 361779
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
0 files changed, 0 insertions, 0 deletions