From 87ea3b05b9d1cc1f7512b53b191f265a93b1ec01 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 31 May 2016 20:35:12 +0000 Subject: [PATCH] [Coverage] Remove redundant handleFileExit() call (NFC) I added this call in r271308. It's redundant because it's dominated by a call to extendRegion(). Thanks to Justin Bogner for pointing this out! llvm-svn: 271331 --- clang/lib/CodeGen/CoverageMappingGen.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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())