diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-10-14 23:38:13 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-10-14 23:38:13 +0000 |
| commit | f2a6ec55215dbbbadcc78a0e091c1cfda611cdef (patch) | |
| tree | 0931c90464e80bfffd9bd24b2979ad01633fb7d8 /clang/lib/CodeGen/CodeGenPGO.cpp | |
| parent | 5fe0678bd8879d5d83df5f73e29bc3c1c60b741b (diff) | |
| download | bcm5719-llvm-f2a6ec55215dbbbadcc78a0e091c1cfda611cdef.tar.gz bcm5719-llvm-f2a6ec55215dbbbadcc78a0e091c1cfda611cdef.zip | |
[Coverage] Support for C++17 switch initializers
Differential Revision: https://reviews.llvm.org/D25539
llvm-svn: 284292
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenPGO.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp index 4eefdd72b7e..02738eb209d 100644 --- a/clang/lib/CodeGen/CodeGenPGO.cpp +++ b/clang/lib/CodeGen/CodeGenPGO.cpp @@ -458,6 +458,8 @@ struct ComputeRegionCounts : public ConstStmtVisitor<ComputeRegionCounts> { void VisitSwitchStmt(const SwitchStmt *S) { RecordStmtCount(S); + if (S->getInit()) + Visit(S->getInit()); Visit(S->getCond()); CurrentCount = 0; BreakContinueStack.push_back(BreakContinue()); |

