Remove dead code

Submitted by Richard Guenther on Jan. 16, 2013, 2:50 p.m.

Details

Message ID alpine.LNX.2.00.1301161550280.6889@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther Jan. 16, 2013, 2:50 p.m.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-01-16  Richard Biener  <rguenther@suse.de>

	* tree-inline.c (tree_function_versioning): Remove set but
	never used variable.

Patch hide | download patch | download mbox

Index: gcc/tree-inline.c
===================================================================
--- gcc/tree-inline.c	(revision 195232)
+++ gcc/tree-inline.c	(working copy)
@@ -5190,7 +5190,6 @@  tree_function_versioning (tree old_decl,
 	replace_info = (*tree_map)[i];
 	if (replace_info->replace_p)
 	  {
-	    tree op = replace_info->new_tree;
 	    if (!replace_info->old_tree)
 	      {
 		int i = replace_info->parm_num;
@@ -5199,13 +5198,6 @@  tree_function_versioning (tree old_decl,
 		  i --;
 		replace_info->old_tree = parm;
 	      }
-		
-
-	    STRIP_NOPS (op);
-
-	    if (TREE_CODE (op) == VIEW_CONVERT_EXPR)
-	      op = TREE_OPERAND (op, 0);
-
 	    gcc_assert (TREE_CODE (replace_info->old_tree) == PARM_DECL);
 	    init = setup_one_parameter (&id, replace_info->old_tree,
 	    			        replace_info->new_tree, id.src_fn,