[PATCH] D18787: [Coverage] Prevent false instantiations detection in case of macro expansions.
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 5 03:17:19 PDT 2016
ikudrin created this revision.
ikudrin added reviewers: bogner, davidxl, vsk.
ikudrin added a subscriber: llvm-commits.
The root of the problem was that findMainViewFileID(File, Function) could return some ID for any given file,
even though that file was not the main for that function.
This patch ensures that the result of this function is conformed with the result of findMainViewFileID(Function).
Please note, that this patch is based on http://reviews.llvm.org/D18758.
http://reviews.llvm.org/D18787
Files:
llvm/trunk/lib/ProfileData/CoverageMapping.cpp
llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18787.52670.patch
Type: text/x-patch
Size: 3995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160405/22e9535b/attachment.bin>
More information about the llvm-commits
mailing list