We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48324f0 commit 73e29e5Copy full SHA for 73e29e5
clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -1370,7 +1370,9 @@ struct CounterCoverageMappingBuilder
1370
// If last statement contains terminate statements, add a gap area
1371
// between the two statements. Skipping attributed statements, because
1372
// they don't have valid start location.
1373
- if (LastStmt && HasTerminateStmt && !isa<AttributedStmt>(Child)) {
+ if (LastStmt && HasTerminateStmt && !isa<AttributedStmt>(Child) &&
1374
+ !isa<ImplicitValueInitExpr>(Child) &&
1375
+ !isa<ImplicitValueInitExpr>(LastStmt)) {
1376
auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child));
1377
if (Gap)
1378
fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(),
0 commit comments