Use auto_vec for pointer_query cache for auto cleanup.
authorMartin Sebor <msebor@redhat.com>
Fri, 4 Feb 2022 02:44:44 +0000 (19:44 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 4 Feb 2022 02:47:04 +0000 (19:47 -0700)
gcc/Changelog:

* pointer-query.h (pointer_query::cache_type): Use auto_vec for auto
cleanup.

gcc/pointer-query.h

index 4c725ee..801a240 100644 (file)
@@ -164,9 +164,9 @@ class pointer_query
   struct cache_type
   {
     /* 1-based indices into cache.  */
-    vec<unsigned> indices;
+    auto_vec<unsigned> indices;
     /* The cache itself.  */
-    vec<access_ref> access_refs;
+    auto_vec<access_ref> access_refs;
   };
 
 public: