diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-19 23:44:02 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-19 23:44:02 +0000 |
commit | 95a2a7f2a124e1a7d7062ed8e9a738b31e174d51 (patch) | |
tree | 974eecebccaba5114ec5915c3411cfe051a8045b /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | db373bed662d5804482baeb44f9a9d5b39bad186 (diff) | |
download | llvm-95a2a7f2a124e1a7d7062ed8e9a738b31e174d51.zip llvm-95a2a7f2a124e1a7d7062ed8e9a738b31e174d51.tar.gz llvm-95a2a7f2a124e1a7d7062ed8e9a738b31e174d51.tar.bz2 |
[Lexer] Don't merge macro args from different macro files
The lexer sets the end location of macro arguments incorrectly *if*,
while merging consecutive args to fit into a single SLocEntry, it finds
args which come from different macro files.
Fix the issue by using separate SLocEntries in this situation.
This fixes a code coverage crasher (rdar://problem/26181005). Because
the lexer reported end locations for certain macro args incorrectly, we
would generate bogus coverage mappings with negative line offsets.
Reviewed-by: akyrtzi
Differential Revision: http://reviews.llvm.org/D20401
llvm-svn: 270160
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions