]> granicus.if.org Git - clang/commit
[Coverage] Push a new region when handling CXXTryStmts
authorVedant Kumar <vsk@apple.com>
Wed, 22 Jun 2016 19:57:58 +0000 (19:57 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 22 Jun 2016 19:57:58 +0000 (19:57 +0000)
commitc35b5c603db3fa9afd201ab99c154e63f21df50d
tree6fe02afbc5b31d0e113353f5f020faeec4b8ab70
parentf6e13ce923d836fb3866ac524422475d82ef027e
[Coverage] Push a new region when handling CXXTryStmts

Push a new region for the try block and propagate execution counts
through it. This ensures that catch statements get a region counter
distinct from the try block's counter.

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