diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 4650001f80d3..bd34e1c5a859 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -783,10 +783,8 @@ struct CounterCoverageMappingBuilder Visit(Child); popRegions(Index); } - } else { - handleFileExit(getStart(Body)); + } else propagateCounts(Counter::getZero(), Body); - } BreakContinue BC = BreakContinueStack.pop_back_val(); if (!BreakContinueStack.empty())