Skip to content

Commit

Permalink
Merge pull request #912 from lioncash/swap
Browse files Browse the repository at this point in the history
PPCAnalyst: Use std::swap instead of making a temporary variable
  • Loading branch information
lioncash committed Aug 30, 2014
2 parents 2c7bcd0 + beb95b7 commit fe518af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Core/Core/PowerPC/PPCAnalyst.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include <algorithm>
#include <queue>
#include <string>

Expand Down Expand Up @@ -419,9 +420,7 @@ void PPCAnalyzer::ReorderInstructions(u32 instructions, CodeOp *code)
if (CanSwapAdjacentOps(a, b))
{
// Alright, let's bubble it down!
CodeOp c = a;
a = b;
b = c;
std::swap(a, b);
}
}
}
Expand Down

0 comments on commit fe518af

Please sign in to comment.