[llvm][NFC] Use move instead of copy
authorChris Cotter <ccotter14@bloomberg.net>
Wed, 1 Feb 2023 17:38:30 +0000 (17:38 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Wed, 1 Feb 2023 17:40:27 +0000 (17:40 +0000)
commit6e3d12951dd7d3305f0e33e0aa4038cbd82f245a
tree4012c631f0fde63b71f75aa07b5e45c74ffaaa68
parent08032411301e8996879c4b558b8bb3808d5dfe6f
[llvm][NFC] Use move instead of copy

Summary: For functions that accept an rvalue reference type
parameter, use move to avoid copying the parameter.

These were found when implementing CppCoreGuideline F.18 in
clang-tidy.

Committed on behalf of ccotter (Chris Cotter)

Reviewers: Michael137 thieta

Differential Revision: https://reviews.llvm.org/D142825
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/MC/MCParser/MasmParser.cpp