aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 52f9985..5a0b903 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-inline.h"
#include "langhooks.h"
#include "hashtab.h"
+#include "hash-set.h"
#include "toplev.h"
#include "flags.h"
#include "debug.h"
@@ -2876,7 +2877,7 @@ cgraph_node::verify_node (void)
{
if (this_cfun->cfg)
{
- pointer_set_t *stmts = pointer_set_create ();
+ hash_set<gimple> stmts;
int i;
struct ipa_ref *ref = NULL;
@@ -2886,13 +2887,13 @@ cgraph_node::verify_node (void)
{
for (gsi = gsi_start_phis (this_block);
!gsi_end_p (gsi); gsi_next (&gsi))
- pointer_set_insert (stmts, gsi_stmt (gsi));
+ stmts.add (gsi_stmt (gsi));
for (gsi = gsi_start_bb (this_block);
!gsi_end_p (gsi);
gsi_next (&gsi))
{
gimple stmt = gsi_stmt (gsi);
- pointer_set_insert (stmts, stmt);
+ stmts.add (stmt);
if (is_gimple_call (stmt))
{
struct cgraph_edge *e = get_edge (stmt);
@@ -2936,13 +2937,12 @@ cgraph_node::verify_node (void)
}
}
for (i = 0; iterate_reference (i, ref); i++)
- if (ref->stmt && !pointer_set_contains (stmts, ref->stmt))
+ if (ref->stmt && !stmts.contains (ref->stmt))
{
error ("reference to dead statement");
cgraph_debug_gimple_stmt (this_cfun, ref->stmt);
error_found = true;
}
- pointer_set_destroy (stmts);
}
else
/* No CFG available?! */