Commit 0ba20759 by Richard Henderson Committed by Richard Henderson

* init.c (build_new_1): Use size_binop instead of cp_build_binary_op.

From-SVN: r50867
parent 6fb2cd7b
2002-03-15 Richard Henderson <rth@redhat.com>
* init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
2002-03-15 Mark Mitchell <mark@codesourcery.com> 2002-03-15 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (CLEANUP_DECL): Remove. * cp-tree.h (CLEANUP_DECL): Remove.
......
...@@ -2260,7 +2260,7 @@ build_new_1 (exp) ...@@ -2260,7 +2260,7 @@ build_new_1 (exp)
size = size_in_bytes (true_type); size = size_in_bytes (true_type);
if (has_array) if (has_array)
size = fold (cp_build_binary_op (MULT_EXPR, size, nelts)); size = size_binop (MULT_EXPR, size, convert (sizetype, nelts));
if (TREE_CODE (true_type) == VOID_TYPE) if (TREE_CODE (true_type) == VOID_TYPE)
{ {
......
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