]> granicus.if.org Git - clang/commit
[Coverage] Fix PR39258: support coverage regions that start deeper than they end
authorVedant Kumar <vsk@apple.com>
Mon, 19 Nov 2018 20:10:22 +0000 (20:10 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 19 Nov 2018 20:10:22 +0000 (20:10 +0000)
commit6345f58fdb731a4cd616a77d02492be803661d72
treebeb31877e6b39fa6f6f78d8d78a8f46adf377c99
parentfd846d8d28f8c89f422658771c363abc6532096d
[Coverage] Fix PR39258: support coverage regions that start deeper than they end

popRegions used to assume that the start location of a region can't be
nested deeper than the end location, which is not always true.

Patch by Orivej Desh!

Differential Revision: https://reviews.llvm.org/D53244

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347262 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CoverageMappingGen.cpp
test/CoverageMapping/macros.c