diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 8826908..559acf0 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2144,7 +2144,10 @@ fold_convert (tree type, tree arg) return fold_build1 (VIEW_CONVERT_EXPR, type, arg); case VOID_TYPE: - return fold_build1 (NOP_EXPR, type, fold_ignored_result (arg)); + tem = fold_ignored_result (arg); + if (TREE_CODE (tem) == GIMPLE_MODIFY_STMT) + return tem; + return fold_build1 (NOP_EXPR, type, tem); default: gcc_unreachable (); |