mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Use std::swap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3e086ea00
commit
939ec8514d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user