[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)
commit0c3e3115e8f490fe6f2afe37678d7c42050fe4a9
tree06da828fddcb58d6aff3c3a3aa76ad1ef36ffdd6
parentc9a9531a035a07fdc2d63d9f4caf73ec4c44775d
[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

llvm-svn: 347262
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/macros.c