From a47c5ddbade4f0f9e25f34a2e951fdf939ab5445 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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271331 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CoverageMappingGen.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()) -- 2.40.0