]> granicus.if.org Git - llvm/commit
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)
commitf5397a23bac5d5208089939671ffa48122f607d0
tree88c4856c697247406220a3174df08b36c0fdaf6d
parent8c101025dc22bf9f1c33bb035e5a2dcde289befa
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp