]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix static chain dump.
authorMartin Liska <mliska@suse.cz>
Mon, 8 Nov 2021 11:57:08 +0000 (12:57 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 8 Nov 2021 11:57:08 +0000 (12:57 +0100)
gcc/ChangeLog:

* cgraph.c (cgraph_node::dump): Dump it from decl.

gcc/cgraph.c

index 8299ee929464f3c06f8d861b4db8b32ffe3cbfb1..c67d300e7a4a2c2929c7c5ce6a9e9665d54ebb3d 100644 (file)
@@ -2203,9 +2203,8 @@ cgraph_node::dump (FILE *f)
     fprintf (f, " %soperator_delete",
             DECL_IS_REPLACEABLE_OPERATOR (decl) ? "replaceable_" : "");
 
-  function *fn = DECL_STRUCT_FUNCTION (decl);
-  if (fn != NULL && fn->static_chain_decl)
-    fprintf (f, " static_chain_decl");
+  if (DECL_STATIC_CHAIN (decl))
+    fprintf (f, " static_chain");
 
   fprintf (f, "\n");