[PATCH] D34801: [coverage] Make smaller regions for the first case of a switch.
Vedant Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 11:15:49 PDT 2017
vsk accepted this revision.
vsk added a comment.
This revision is now accepted and ready to land.
Thanks for the patch! LGTM.
================
Comment at: lib/CodeGen/CoverageMappingGen.cpp:686
+ // FIXME: a break in a switch should terminate regions for all preceding
+ // case statements, not just the most recent one.
terminateRegion(S);
----------------
As should return/continue.
Repository:
rL LLVM
https://reviews.llvm.org/D34801
More information about the cfe-commits
mailing list