Commit 5c2e00ee by Jan Hubicka Committed by Jan Hubicka

* cgraph.c (cgraph_node): Do not confuse nested functions and methods.

From-SVN: r63889
parent 323658ea
Thu Mar 6 14:20:15 CET 2003 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_node): Do not confuse nested functions and methods.
2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* dwarf2out.c (size_of_die): Compute size of external reference to
......
......@@ -98,7 +98,7 @@ cgraph_node (decl)
cgraph_nodes = node;
cgraph_n_nodes++;
*slot = node;
if (DECL_CONTEXT (decl))
if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
{
node->origin = cgraph_node (DECL_CONTEXT (decl));
node->next_nested = node->origin->nested;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment