The situation happened when a macro contained a full loop statement,
which body ended at the end of the macro.
Details
Diff Detail
Event Timeline
Thanks, lgtm with a nit.
lib/CodeGen/CoverageMappingGen.cpp | ||
---|---|---|
452 | These asserts replicate checks inside of get{Start,End}Loc, so I think it's cleaner to drop them. |
lgtm
lib/CodeGen/CoverageMappingGen.cpp | ||
---|---|---|
468 | Perhaps add a comment here that there is need to create 'outer most' code region for while/for stmt('s virtual file) with counter equal to the parent/enclosing scope's counter. The expansion region's counter will be copied from it during coverage reading. Also refer to handleFileExit where the region is created. |
These asserts replicate checks inside of get{Start,End}Loc, so I think it's cleaner to drop them.