public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7043] Use auto_vec for pointer_query cache for auto cleanup.
@ 2022-02-04 2:47 Martin Sebor
0 siblings, 0 replies; only message in thread
From: Martin Sebor @ 2022-02-04 2:47 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e78d98f76f8d6ee4d06fc98f7f7c3ea4b86c828c
commit r12-7043-ge78d98f76f8d6ee4d06fc98f7f7c3ea4b86c828c
Author: Martin Sebor <msebor@redhat.com>
Date: Thu Feb 3 19:44:44 2022 -0700
Use auto_vec for pointer_query cache for auto cleanup.
gcc/Changelog:
* pointer-query.h (pointer_query::cache_type): Use auto_vec for auto
cleanup.
Diff:
---
gcc/pointer-query.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/pointer-query.h b/gcc/pointer-query.h
index 4c725eeaf34..801a240c38d 100644
--- a/gcc/pointer-query.h
+++ b/gcc/pointer-query.h
@@ -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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-04 2:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 2:47 [gcc r12-7043] Use auto_vec for pointer_query cache for auto cleanup Martin Sebor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).