From: Matt Arsenault Date: Mon, 7 Apr 2014 16:44:26 +0000 (+0000) Subject: Use std::swap X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=939ec8514dadd4c2aaf54ddbc95dfb43830764b8;p=oota-llvm.git Use std::swap git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205723 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index 29aaa9e76b6..58526d27a99 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/lib/Target/R600/SIISelLowering.cpp @@ -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;