(build_unary_op, case *INCREMENT_EXPR): Add size in bytes, not value
of sizeof. From-SVN: r7822
This commit is contained in:
parent
acb76ce3b4
commit
0e9cff7f3a
@ -2798,7 +2798,7 @@ build_unary_op (code, xarg, noconvert)
|
|||||||
((code == PREINCREMENT_EXPR
|
((code == PREINCREMENT_EXPR
|
||||||
|| code == POSTINCREMENT_EXPR)
|
|| code == POSTINCREMENT_EXPR)
|
||||||
? "increment" : "decrement"));
|
? "increment" : "decrement"));
|
||||||
inc = c_sizeof_nowarn (TREE_TYPE (result_type));
|
inc = c_size_in_bytes (TREE_TYPE (result_type));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
inc = integer_one_node;
|
inc = integer_one_node;
|
||||||
|
Loading…
Reference in New Issue
Block a user