]> granicus.if.org Git - clang/commit
InstrProf: Make sure counts in lambdas don't escape to the parent scope
authorJustin Bogner <mail@justinbogner.com>
Tue, 24 Feb 2015 04:13:56 +0000 (04:13 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 24 Feb 2015 04:13:56 +0000 (04:13 +0000)
commitbf25ca0250067c7692af95be112f00b874914e6c
treed72a65976195db3eabaf574e02739774d50647ca
parent09f959d3948bc2b381164dbff5d799c3ea1d03e1
InstrProf: Make sure counts in lambdas don't escape to the parent scope

When generating coverage maps, we were traversing the body as if it
were part of the parent function, but this doesn't make sense since
we're currently counting lambdas as separate functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230304 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CoverageMappingGen.cpp
test/CoverageMapping/lambda.cpp [new file with mode: 0644]