================ @@ -362,6 +362,8 @@ CodeGenFunction::AddInitializerToStaticVarDecl(const VarDecl &D, return GV; } + PGO.markStmtMaybeUsed(D.getInit()); // FIXME: Too lazy ---------------- chapuni wrote:
It marks entire the initializer as "don't check further". Just for checks and will not affect actual code generation. I'll sink it to other places when we will get issues. https://github.com/llvm/llvm-project/pull/112724 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits