[all-commits] [llvm/llvm-project] 6e3d12: [llvm][NFC] Use move instead of copy

Chris Cotter via All-commits all-commits at lists.llvm.org
Wed Feb 1 09:41:15 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e3d12951dd7d3305f0e33e0aa4038cbd82f245a
  Author: Chris Cotter <ccotter14 at bloomberg.net>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    M llvm/lib/MC/MCParser/MasmParser.cpp

  Log Message:
  [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

Committed on behalf of ccotter (Chris Cotter)

Reviewers: Michael137 thieta

Differential Revision: https://reviews.llvm.org/D142825

More information about the All-commits mailing list