[clang] Fix: Issue #165239 — resolve -Wuninitialized warnings (PR #166991)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 8 05:26:29 PST 2025


================
@@ -61,8 +61,8 @@ static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
       vd->getDeclContext() == dc) {
     QualType ty = vd->getType();
     if (const auto *RD = ty->getAsRecordDecl())
-      return recordIsNotEmpty(RD);
-    return ty->isScalarType() || ty->isVectorType() || ty->isRVVSizelessBuiltinType();
+      return recordIsNotEmpty(RD);    
----------------
zwuis wrote:

Unrelated changes?

https://github.com/llvm/llvm-project/pull/166991


More information about the cfe-commits mailing list