The situation happened when a macro contained a full loop statement,
which body ended at the end of the macro.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks, lgtm with a nit.
lib/CodeGen/CoverageMappingGen.cpp | ||
---|---|---|
452 ↗ | (On Diff #55602) | These asserts replicate checks inside of get{Start,End}Loc, so I think it's cleaner to drop them. |
Comment Actions
lgtm
lib/CodeGen/CoverageMappingGen.cpp | ||
---|---|---|
468 ↗ | (On Diff #55602) | 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. |