[all-commits] [llvm/llvm-project] a70b99: [llvm-exegesis] Remove unneeded std::move()

Miloš Stojanović via All-commits all-commits at lists.llvm.org
Mon Jan 13 05:20:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a70b993239a829f30ff1e5991670a0b28bf51459
      https://github.com/llvm/llvm-project/commit/a70b993239a829f30ff1e5991670a0b28bf51459
  Author: Miloš Stojanović <Milos.Stojanovic at rt-rk.com>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/Mips/Target.cpp

  Log Message:
  -----------
  [llvm-exegesis] Remove unneeded std::move()

Caught by buildbot breakage:

/home/docker/worker_env/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm/llvm/tools/llvm-exegesis/lib/Mips/Target.cpp:89:12: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
    return std::move(Instructions);
           ^
/home/docker/worker_env/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm/llvm/tools/llvm-exegesis/lib/Mips/Target.cpp:89:12: note: remove std::move call here
    return std::move(Instructions);
           ^~~~~~~~~~            ~




More information about the All-commits mailing list