commit | f2a6ec55215dbbbadcc78a0e091c1cfda611cdef | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Fri Oct 14 23:38:13 2016 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Fri Oct 14 23:38:13 2016 +0000 |
tree | 0931c90464e80bfffd9bd24b2979ad01633fb7d8 | |
parent | 5fe0678bd8879d5d83df5f73e29bc3c1c60b741b [diff] [blame] |
[Coverage] Support for C++17 switch initializers Differential Revision: https://reviews.llvm.org/D25539 llvm-svn: 284292
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 35d1b1d..403fbce 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -813,6 +813,8 @@ void VisitSwitchStmt(const SwitchStmt *S) { extendRegion(S); + if (S->getInit()) + Visit(S->getInit()); Visit(S->getCond()); BreakContinueStack.push_back(BreakContinue());