r271331 - [Coverage] Remove redundant handleFileExit() call (NFC)
Vedant Kumar via cfe-commits
cfe-commits at lists.llvm.org
Tue May 31 13:35:12 PDT 2016
Author: vedantk
Date: Tue May 31 15:35:12 2016
New Revision: 271331
URL: http://llvm.org/viewvc/llvm-project?rev=271331&view=rev
Log:
[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!
Modified:
cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=271331&r1=271330&r2=271331&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Tue May 31 15:35:12 2016
@@ -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())
More information about the cfe-commits
mailing list