[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)
Jessica Paquette via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 18 20:25:32 PST 2024
================
@@ -1869,7 +1871,10 @@ void CodeGenFunction::EmitAutoVarInit(const AutoVarEmission &emission) {
// If we are at an unreachable point, we don't need to emit the initializer
// unless it contains a label.
if (!HaveInsertPoint()) {
- if (!Init || !ContainsLabel(Init)) return;
+ if (!Init || !ContainsLabel(Init)) {
+ PGO.markStmtMaybeUsed(Init);
----------------
ornata wrote:
why?
https://github.com/llvm/llvm-project/pull/112724
More information about the cfe-commits
mailing list