diff options
author | Jordan Rose <jordan_rose@apple.com> | 2016-06-28 01:02:31 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2016-06-28 01:02:31 +0000 |
commit | 602ac14cc79c1381d66c14976a6d5a6d9dce4af6 (patch) | |
tree | 0e2b5a18b042868824db3011e1f81f2117ebc70d /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | ec3330328a86e9f694b7ab0520daf29562751d4f (diff) | |
download | bcm5719-llvm-602ac14cc79c1381d66c14976a6d5a6d9dce4af6.tar.gz bcm5719-llvm-602ac14cc79c1381d66c14976a6d5a6d9dce4af6.zip |
Avoid accessing an invalid PresumedLoc.
DiagnosticNoteRenderer asserts trying to emit its "while building
module Foo imported from bar.h:5" note when the presumed location
of the import is invalid. This assertion was added in r267914,
where most uses of 'getFilename' were updated to test 'isValid'
instead. This one must have been missed.
I can't come up with a test because this location is always valid
in C-based code, but external clients that manually import modules
(*cough*Swift*cough*) sometimes provide invalid SourceLocations.
rdar://problem/26099576
http://reviews.llvm.org/D21111
llvm-svn: 273976
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions