Use std::swap

llvm-svn: 205723
This commit is contained in:
Matt Arsenault 2014-04-07 16:44:26 +00:00
parent 7939acd7fa
commit 4be76e99fe
1 changed files with 1 additions and 3 deletions

View File

@ -1281,9 +1281,7 @@ SDNode *SITargetLowering::foldOperands(MachineSDNode *Node,
fitsRegClass(DAG, Ops[1], OtherRegClass))) {
// Swap commutable operands
SDValue Tmp = Ops[1];
Ops[1] = Ops[0];
Ops[0] = Tmp;
std::swap(Ops[0], Ops[1]);
Desc = DescRev;
DescRev = 0;