Commit 28eb1cb8 by Richard Kenner

(copy_constant, case COMPLEX_CST): Add new arg, TYPE, to call to build_complex.

From-SVN: r12866
parent 214d5b84
...@@ -2796,7 +2796,8 @@ copy_constant (exp) ...@@ -2796,7 +2796,8 @@ copy_constant (exp)
return copy_node (exp); return copy_node (exp);
case COMPLEX_CST: case COMPLEX_CST:
return build_complex (copy_constant (TREE_REALPART (exp)), return build_complex (TREE_TYPE (exp),
copy_constant (TREE_REALPART (exp)),
copy_constant (TREE_IMAGPART (exp))); copy_constant (TREE_IMAGPART (exp)));
case PLUS_EXPR: case PLUS_EXPR:
......
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