]> granicus.if.org Git - clang/commit
[Coverage] Fix an issue where a coverage region might not be created for a macro...
authorIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 4 May 2016 15:38:26 +0000 (15:38 +0000)
committerIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 4 May 2016 15:38:26 +0000 (15:38 +0000)
commitb5f1f3cacdb0ba272db85083a72495d6b76d6093
tree7dc152c5cda11d50b06179346bf596e4a50fb909
parent346d1b48180296f0c0bbbf9c3ae6d3d55d54738f
[Coverage] Fix an issue where a coverage region might not be created for a macro containing a loop statement.

The issue happened when a macro contained a full for or
while statement, which body ended at the end of the macro.

Differential Revision: http://reviews.llvm.org/D19725

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