summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r--gcc/lto-streamer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h
index c6cf72c1ad3..d350ad9cedb 100644
--- a/gcc/lto-streamer.h
+++ b/gcc/lto-streamer.h
@@ -1075,14 +1075,14 @@ lsei_node (lto_symtab_encoder_iterator lsei)
static inline struct cgraph_node *
lsei_cgraph_node (lto_symtab_encoder_iterator lsei)
{
- return cgraph (lsei.encoder->nodes[lsei.index].node);
+ return dyn_cast<cgraph_node *> (lsei.encoder->nodes[lsei.index].node);
}
/* Return the node pointed to by LSI. */
static inline varpool_node *
lsei_varpool_node (lto_symtab_encoder_iterator lsei)
{
- return varpool (lsei.encoder->nodes[lsei.index].node);
+ return dyn_cast<varpool_node *> (lsei.encoder->nodes[lsei.index].node);
}
/* Return the cgraph node corresponding to REF using ENCODER. */