(grokdeclarator): Strip all NOP_EXPRs from SIZE.
From-SVN: r1523
This commit is contained in:
parent
9c0ae98b3a
commit
fa142928c5
@ -3749,8 +3749,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
|
||||
if (size)
|
||||
{
|
||||
/* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */
|
||||
while (TREE_CODE (size) == NON_LVALUE_EXPR)
|
||||
size = TREE_OPERAND (size, 0);
|
||||
STRIP_NOPS (size);
|
||||
|
||||
if (TREE_CODE (TREE_TYPE (size)) != INTEGER_TYPE
|
||||
&& TREE_CODE (TREE_TYPE (size)) != ENUMERAL_TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user