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)
commitc109102ecb80c06375688d374fdc17c04cd7d562
tree44640375a792629400dc47d26deeda120a9d1a75
parent7d7dee753dc91b24fee3f39af37b2432e9fe41a2
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.

llvm-svn: 230304
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/lambda.cpp [new file with mode: 0644]