Commit 68a976f2 by Razya Ladelsky

* tree-inline.c (copy_decl_for_dup): Add missing condition.

From-SVN: r102632
parent d6e14e8f
......@@ -2689,7 +2689,8 @@ copy_decl_for_dup (tree decl, tree from_fn, tree to_fn, bool versioning)
DECL_ABSTRACT_ORIGIN (copy) = DECL_ORIGIN (decl);
/* The new variable/label has no RTL, yet. */
if (!TREE_STATIC (copy) && !DECL_EXTERNAL (copy))
if (CODE_CONTAINS_STRUCT (TREE_CODE (copy), TS_DECL_WRTL)
&& !TREE_STATIC (copy) && !DECL_EXTERNAL (copy))
SET_DECL_RTL (copy, NULL_RTX);
/* These args would always appear unused, if not for this. */
......
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