Commit 8e27715a by Richard Stallman

(build_complex): Set the TREE_TYPE based on real part.

From-SVN: r3625
parent 742e43a2
......@@ -1227,6 +1227,7 @@ build_complex (real, imag)
register tree t = make_node (COMPLEX_CST);
TREE_REALPART (t) = real;
TREE_IMAGPART (t) = imag;
TREE_TYPE (t) = build_complex_type (TREE_TYPE (real));
return t;
}
......
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