diff options
author | Mikhail Maltsev <maltsevm@gmail.com> | 2015-04-30 03:47:40 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-04-29 21:47:40 -0600 |
commit | 00c1cf38e148cdbd57d350e240684181dac01091 (patch) | |
tree | 89b77ecff8a1b5377f791184ce38417d2d7e13cd /gcc/dojump.c | |
parent | fd2bbdfd97b5af9b848f79eceb55d2dc60c823c5 (diff) | |
download | gcc-00c1cf38e148cdbd57d350e240684181dac01091.zip gcc-00c1cf38e148cdbd57d350e240684181dac01091.tar.gz gcc-00c1cf38e148cdbd57d350e240684181dac01091.tar.bz2 |
dojump.c (do_compare_rtx_and_jump): Use std::swap instead of manual swaps.
2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
* dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
manual swaps.
* expr.c (expand_expr_real_2): Likewise.
From-SVN: r222608
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index ad356ba..0790c77 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -987,9 +987,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, if (can_compare_p (rcode, mode, ccp_jump) || (code == ORDERED && ! can_compare_p (ORDERED, mode, ccp_jump))) { - tem = if_true_label; - if_true_label = if_false_label; - if_false_label = tem; + std::swap (if_true_label, if_false_label); code = rcode; prob = inv (prob); } @@ -1000,9 +998,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, if (swap_commutative_operands_p (op0, op1)) { - tem = op0; - op0 = op1; - op1 = tem; + std::swap (op0, op1); code = swap_condition (code); } |