[NFC][MLGO] Use std::move when moving protobufs
authorMircea Trofin <mtrofin@google.com>
Fri, 20 Aug 2021 19:50:20 +0000 (12:50 -0700)
committerMircea Trofin <mtrofin@google.com>
Fri, 20 Aug 2021 20:40:35 +0000 (13:40 -0700)
commit8dc3fe0cd1e1353e39be032a94bb163f7d4e0e14
tree97d7788f059caa71357f9c5da633ae7a5f2a46d4
parentab9296f13be45cd190608f54a69bdd5c7c561b16
[NFC][MLGO] Use std::move when moving protobufs

Because of an odd linking problem, we need to temporarily support
building with TF C API 1.15 + tensorflow 2.50 pip package in
'development' mode scenarios. Protobuf Message 'Swap' is partially
implemented in the header (2.50) and relies on a symbol not found in TF
C API 1.15. std::move avoids that, at no semantic cost.
llvm/lib/Analysis/TFUtils.cpp