summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-07 16:44:26 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-07 16:44:26 +0000
commit939ec8514dadd4c2aaf54ddbc95dfb43830764b8 (patch)
tree575172f9e22f9f3ecad9eb701eea8938f5d68e59
parente3e086ea00550e049d7a756307d51657ec60ea7d (diff)
downloadllvm-939ec8514dadd4c2aaf54ddbc95dfb43830764b8.tar.gz
llvm-939ec8514dadd4c2aaf54ddbc95dfb43830764b8.tar.bz2
llvm-939ec8514dadd4c2aaf54ddbc95dfb43830764b8.tar.xz
Use std::swap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205723 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/R600/SIISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp
index 29aaa9e76b..58526d27a9 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;