aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-diagnostic.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-diagnostic.c')
-rw-r--r--gcc/tree-diagnostic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-diagnostic.c b/gcc/tree-diagnostic.c
index 5377ec2..234d0fd 100644
--- a/gcc/tree-diagnostic.c
+++ b/gcc/tree-diagnostic.c
@@ -102,7 +102,7 @@ maybe_unwind_expanded_macro_loc (diagnostic_context *context,
source_location where)
{
const struct line_map *map;
- vec<loc_map_pair> loc_vec = vNULL;
+ auto_vec<loc_map_pair> loc_vec;
unsigned ix;
loc_map_pair loc, *iter;
@@ -219,8 +219,6 @@ maybe_unwind_expanded_macro_loc (diagnostic_context *context,
"in expansion of macro %qs",
linemap_map_get_macro_name (iter->map));
}
-
- loc_vec.release ();
}
/* This is a diagnostic finalizer implementation that is aware of