aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMikhail Maltsev <maltsevm@gmail.com>2015-04-30 03:47:40 +0000
committerJeff Law <law@gcc.gnu.org>2015-04-29 21:47:40 -0600
commit00c1cf38e148cdbd57d350e240684181dac01091 (patch)
tree89b77ecff8a1b5377f791184ce38417d2d7e13cd /gcc/expr.c
parentfd2bbdfd97b5af9b848f79eceb55d2dc60c823c5 (diff)
downloadgcc-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/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 530a944..25aa11f 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -8870,11 +8870,7 @@ expand_expr_real_2 (sepops ops, rtx target, machine_mode tmode,
/* If op1 was placed in target, swap op0 and op1. */
if (target != op0 && target == op1)
- {
- temp = op0;
- op0 = op1;
- op1 = temp;
- }
+ std::swap (op0, op1);
/* We generate better code and avoid problems with op1 mentioning
target by forcing op1 into a pseudo if it isn't a constant. */