Avoid use-after-move warnings by using swap instead. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 May 2019 15:45:00 +0000 (15:45 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 May 2019 15:45:00 +0000 (15:45 +0000)
commit3044ac058bdc7ee960fb4c084d2f8affd2b9c8c4
tree82ba7c45ae9eeab30d53145b5b1d605e38149fcf
parentab8c8da60928cae277942f4fda2e63626ec7b863
Avoid use-after-move warnings by using swap instead. NFCI.

Swap should be as quick in these cases, and leaves the original variables in a known (empty) state.

llvm-svn: 360164
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp