InstrProf: Don't start or end coverage regions inside of system macros
authorJustin Bogner <mail@justinbogner.com>
Tue, 5 May 2015 21:46:14 +0000 (21:46 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 5 May 2015 21:46:14 +0000 (21:46 +0000)
commit6d721fa28c868eaaf06ab417131c10d13c3ed10f
treeec77e26f2457f68a1d6f9a20ebfc2a1f2d2743e6
parent801caff64d2f3eea7b97270855d765c34e102c19
InstrProf: Don't start or end coverage regions inside of system macros

It doesn't make much sense to try to show coverage inside system
macros, and source locations in builtins confuses the coverage
mapping. Just avoid doing this.

Fixes an assert that fired when a __block storage specifier starts a
region.

llvm-svn: 236547
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/block-storage-starts-region.m [new file with mode: 0644]