]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/varpool.c
This patch rewrites the old VEC macro-based interface into a new one
[thirdparty/gcc.git] / gcc / varpool.c
index b88ec613ff64befdd74be0aef709d8a9b28516b5..87f29a02f09b2a977825d793cce35bfc12504d89 100644 (file)
@@ -243,7 +243,7 @@ varpool_analyze_node (struct varpool_node *node)
            node->alias = false;
            continue;
          }
-      if (!VEC_length (ipa_ref_t, node->symbol.ref_list.references))
+      if (!vec_safe_length (node->symbol.ref_list.references))
        ipa_record_reference ((symtab_node)node, (symtab_node)tgt, IPA_REF_ALIAS, NULL);
       if (node->extra_name_alias)
        {