+2011-04-15 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
+
2011-04-15 Gary Benson <gbenson@redhat.com>
* MAINTAINERS: Add myself to write-after-approval section.
/* Don't push an index twice. Due to how we add entries we only
have to check the last one. */
if (VEC_empty (offset_type, (*slot)->cu_indices)
- || VEC_length (offset_type, (*slot)->cu_indices) != cu_index)
+ || VEC_last (offset_type, (*slot)->cu_indices) != cu_index)
VEC_safe_push (offset_type, (*slot)->cu_indices, cu_index);
}