Use std::swap
[oota-llvm.git] / lib / Target / R600 / SIISelLowering.cpp
index 29aaa9e76b6d1312bef1c9cbe0341238463dc3f9..58526d27a996fbe2232a501e74b9801eb5a82ee3 100644 (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;