diff options
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 4671702d249..363da4c02d7 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -608,11 +608,8 @@ DFS::DFS (struct output_block *ob, tree expr, bool ref_p, bool this_ref_p, } } for (unsigned i = 0; i < scc_entry_len; ++i) - { - scc_entry tem = sccstack[first + i]; - sccstack[first + i] = sccstack[first + entry_start + i]; - sccstack[first + entry_start + i] = tem; - } + std::swap (sccstack[first + i], + sccstack[first + entry_start + i]); if (scc_entry_len == 1) ; /* We already sorted SCC deterministically in hash_scc. */ |