diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 9b5f050d..aeb5f7b 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -6870,9 +6870,7 @@ finish_omp_atomic (enum tree_code code, enum tree_code opcode, tree lhs, bool swapped = false; if (rhs1 && cp_tree_equal (lhs, rhs)) { - tree tem = rhs; - rhs = rhs1; - rhs1 = tem; + std::swap (rhs, rhs1); swapped = !commutative_tree_code (opcode); } if (rhs1 && !cp_tree_equal (lhs, rhs1)) |