diff options
author | Richard Biener <rguenther@suse.de> | 2015-07-23 07:22:06 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-07-23 07:22:06 +0000 |
commit | bde7d04b62f9fbc95131c4246ff2da7d063bda31 (patch) | |
tree | eb1949c3a9149ad2601d270393ad34be974f3c8c /gcc/gimple.h | |
parent | 3f02735bcff518fbab938e98795f81d0a2fb7603 (diff) | |
download | gcc-bde7d04b62f9fbc95131c4246ff2da7d063bda31.zip gcc-bde7d04b62f9fbc95131c4246ff2da7d063bda31.tar.gz gcc-bde7d04b62f9fbc95131c4246ff2da7d063bda31.tar.bz2 |
gimple.h (gimple_cond_make_false): Use 0 != 0.
2015-07-23 Richard Biener <rguenther@suse.de>
* gimple.h (gimple_cond_make_false): Use 0 != 0.
(gimple_cond_make_true): Use 1 != 0.
From-SVN: r226087
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 195ad3c..596d28d 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -3187,9 +3187,9 @@ gimple_cond_false_label (const gcond *gs) static inline void gimple_cond_make_false (gcond *gs) { - gimple_cond_set_lhs (gs, boolean_true_node); + gimple_cond_set_lhs (gs, boolean_false_node); gimple_cond_set_rhs (gs, boolean_false_node); - gs->subcode = EQ_EXPR; + gs->subcode = NE_EXPR; } @@ -3199,8 +3199,8 @@ static inline void gimple_cond_make_true (gcond *gs) { gimple_cond_set_lhs (gs, boolean_true_node); - gimple_cond_set_rhs (gs, boolean_true_node); - gs->subcode = EQ_EXPR; + gimple_cond_set_rhs (gs, boolean_false_node); + gs->subcode = NE_EXPR; } /* Check if conditional statemente GS is of the form 'if (1 == 1)', |