08780529b3
This patch fixes a regression introduced in r262697 that changed the way the coverage regions for switches are constructed. The PGO instrumentation counter for a switch statement refers to the counter at the exit of the switch. Therefore, the coverage region for the switch statement should cover the code that comes after the switch, and not the switch statement itself. rdar://28480997 Differential Revision: https://reviews.llvm.org/D24981 llvm-svn: 282554 |
||
---|---|---|
.. | ||
Inputs | ||
abspath.cpp | ||
block-storage-starts-region.m | ||
break.c | ||
builtinmacro.c | ||
casts.c | ||
classtemplate.cpp | ||
comment-in-macro.c | ||
continue.c | ||
control-flow-macro.c | ||
decl.c | ||
header.cpp | ||
if.c | ||
implicit-def-in-macro.m | ||
include-macros.c | ||
includehell.cpp | ||
ir.c | ||
label.cpp | ||
lambda.cpp | ||
logical.cpp | ||
loopmacro.c | ||
loops.cpp | ||
macro-expansion.c | ||
macro-expressions.cpp | ||
macroception.c | ||
macroparams.c | ||
macroparams2.c | ||
macros.c | ||
macroscopes.cpp | ||
md.cpp | ||
moremacros.c | ||
nestedclass.cpp | ||
objc.m | ||
preprocessor.c | ||
return.c | ||
switch.c | ||
switchmacro.c | ||
system_macro.cpp | ||
templates.cpp | ||
test.c | ||
trycatch.cpp | ||
trymacro.cpp | ||
unreachable-macro.c | ||
unused_function.cpp | ||
unused_names.c | ||
while.c |