[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)
Jessica Paquette via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 22 20:26:13 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:
Should it be removed then?
https://github.com/llvm/llvm-project/pull/112724
More information about the cfe-commits
mailing list