diff mbox

[lto] Remove unnecessary assertion for DECL_SAVED_TREE (issue4530094)

Message ID 20110601200018.18E401DA1C9@topo.tor.corp.google.com
State New
Headers show

Commit Message

Diego Novillo June 1, 2011, 8 p.m. UTC
This patchlet removes the assertion that DECL_SAVED_TREE should
be NULL.

As we discussed in http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00004.html,
it is no longer necessary.

Committed to trunk.


Diego.


	* lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
	Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.


--
This patch is available for review at http://codereview.appspot.com/4530094
diff mbox

Patch

diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 7f3217b..3d42483 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -931,11 +931,6 @@  lto_output_ts_decl_non_common_tree_pointers (struct output_block *ob,
 {
   if (TREE_CODE (expr) == FUNCTION_DECL)
     {
-      /* DECL_SAVED_TREE holds the GENERIC representation for DECL.
-	 At this point, it should not exist.  Either because it was
-	 converted to gimple or because DECL didn't have a GENERIC
-	 representation in this TU.  */
-      gcc_assert (DECL_SAVED_TREE (expr) == NULL_TREE);
       lto_output_tree_or_ref (ob, DECL_ARGUMENTS (expr), ref_p);
       lto_output_tree_or_ref (ob, DECL_RESULT (expr), ref_p);
     }