Commit e1f10dd9 by Jakub Jelinek Committed by Jakub Jelinek

init.c (build_new_1): Don't test TREE_CONSTANT of INTEGER_CST.

	* init.c (build_new_1): Don't test TREE_CONSTANT
	of INTEGER_CST.

From-SVN: r191803
parent 6b74529d
2012-09-27 Jakub Jelinek <jakub@redhat.com>
* init.c (build_new_1): Don't test TREE_CONSTANT
of INTEGER_CST.
2012-09-25 Paolo Carlini <paolo.carlini@oracle.com> 2012-09-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54526 PR c++/54526
......
...@@ -2235,8 +2235,7 @@ build_new_1 (VEC(tree,gc) **placement, tree type, tree nelts, ...@@ -2235,8 +2235,7 @@ build_new_1 (VEC(tree,gc) **placement, tree type, tree nelts,
{ {
tree inner_nelts = array_type_nelts_top (elt_type); tree inner_nelts = array_type_nelts_top (elt_type);
tree inner_nelts_cst = maybe_constant_value (inner_nelts); tree inner_nelts_cst = maybe_constant_value (inner_nelts);
if (TREE_CONSTANT (inner_nelts_cst) if (TREE_CODE (inner_nelts_cst) == INTEGER_CST)
&& TREE_CODE (inner_nelts_cst) == INTEGER_CST)
{ {
bool overflow; bool overflow;
double_int result = TREE_INT_CST (inner_nelts_cst) double_int result = TREE_INT_CST (inner_nelts_cst)
......
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