diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-30 03:47:40 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-30 03:47:40 +0000 |
commit | 1d1a557c6065b53759546b453112fdee6c0f9055 (patch) | |
tree | 89b77ecff8a1b5377f791184ce38417d2d7e13cd /gcc/expr.c | |
parent | 0241f4a177bd6dd5c5b09b072908b58220b1546e (diff) | |
download | gcc-1d1a557c6065b53759546b453112fdee6c0f9055.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222608 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 530a944da46..25aa11f06e6 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. */ |