[clang/test/CodeGen] Add test coverage for VarBypassDetector handling init statements...
authorWang <Duo.Wang@sony.com>
Fri, 9 Jun 2023 18:05:51 +0000 (11:05 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 9 Jun 2023 18:28:14 +0000 (11:28 -0700)
commitb03abbb537e5403ab32f97e2ffcebafe4a92720d
tree1eb49bf3134a713c3fcadb838c2cb56323f11436
parent62c0bdabfa32f6e32b17b45425b15309db340dfb
[clang/test/CodeGen] Add test coverage for VarBypassDetector handling init statements and condition variables in switch clauses

[VarBypassDetector.cpp](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/VarBypassDetector.cpp) lacks test coverage for handling init statements and condition variables in switch clauses, as is shown in:
https://lab.llvm.org/coverage/coverage-reports/coverage/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/CodeGen/VarBypassDetector.cpp.html#L70
This patch adds test coverage for uncovered lines.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D152412
clang/test/CodeGen/lifetime3.cpp [new file with mode: 0644]