================
@@ -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);    
+    return ty->isScalarType() || ty->isVectorType() || 
ty->isRVVSizelessBuiltinType() || ty->isArrayType();
----------------
zwuis wrote:

Could you please add tests with arrays whose element type is `struct` (not a 
scalar type)?

https://github.com/llvm/llvm-project/pull/166991
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to