[all-commits] [llvm/llvm-project] a4703e: [clang] Remove std::move in GenerateModuleAction::...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Thu Mar 7 18:20:25 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4703e5bccc63eca45e0e4bff8f04f82d8622ebe
      https://github.com/llvm/llvm-project/commit/a4703e5bccc63eca45e0e4bff8f04f82d8622ebe
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M clang/lib/Frontend/FrontendActions.cpp

  Log Message:
  -----------
  [clang] Remove std::move in GenerateModuleAction::CreateMultiplexConsumer (NFC)

llvm-project/clang/lib/Frontend/FrontendActions.cpp:213:10:
error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
  213 |   return std::move(Consumers);
      |          ^
/Users/jiefu/llvm-project/clang/lib/Frontend/FrontendActions.cpp:213:10: note: remove std::move call here
  213 |   return std::move(Consumers);
      |          ^~~~~~~~~~         ~
1 error generated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list