diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 3654fd6..1476ee0 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6139,12 +6139,8 @@ extract_muldiv_1 (tree t, tree c, enum tree_code code, tree wide_type, /* If OP1 was not easily negatable, the constant may be OP0. */ if (TREE_CODE (op0) == INTEGER_CST) { - tree tem = op0; - op0 = op1; - op1 = tem; - tem = t1; - t1 = t2; - t2 = tem; + std::swap (op0, op1); + std::swap (t1, t2); } } |