From: Vedant Kumar Date: Tue, 31 May 2016 20:35:12 +0000 (+0000) Subject: [Coverage] Remove redundant handleFileExit() call (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a47c5ddbade4f0f9e25f34a2e951fdf939ab5445;p=clang [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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271331 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CoverageMappingGen.cpp b/lib/CodeGen/CoverageMappingGen.cpp index 4650001f80..bd34e1c5a8 100644 --- a/lib/CodeGen/CoverageMappingGen.cpp +++ b/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())