[all-commits] [llvm/llvm-project] 313d33: [llvm-objdump, SHT_LLVM_BB_ADDR_MAP, NFC] Use auto &...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Thu Jan 25 13:03:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 313d33e33c7d379beb96cbf773ec3b98d1d2c6ed
      https://github.com/llvm/llvm-project/commit/313d33e33c7d379beb96cbf773ec3b98d1d2c6ed
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump,SHT_LLVM_BB_ADDR_MAP,NFC] Use auto && instead of const auto & to allow moving from BBAddrMap objects. (#79456)

std::move on `const auto &` references is essentially a noop. Changing
to `auto &&` to actually allow moving.




More information about the All-commits mailing list