[Coverage] Remove '..' from filenames *after* getting an absolute path
authorVedant Kumar <vsk@apple.com>
Mon, 18 Jul 2016 22:32:02 +0000 (22:32 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 18 Jul 2016 22:32:02 +0000 (22:32 +0000)
commitd04929d875d7c1bd4627d534f0ab432243003e5e
tree6208b87a6710b40b42e0f2b2a0704f49dc6c4804
parent4ced16dd2efd1793bd5c294c807d75737a06e7f6
[Coverage] Remove '..' from filenames *after* getting an absolute path

Failure to do this breaks relative paths which begin with '..'.

This issue was caught by the (still nascent) coverage bot.

llvm-svn: 275924
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/abspath.cpp