[all-commits] [llvm/llvm-project] e8c224: [orc-rt] std::forward unbound arguments when using...

Lang Hames via All-commits all-commits at lists.llvm.org
Wed Aug 27 16:54:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8c22413b30c5c24a2041d57f78fb4af6ec59d86
      https://github.com/llvm/llvm-project/commit/e8c22413b30c5c24a2041d57f78fb4af6ec59d86
  Author: Lang Hames <lhames at gmail.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    M orc-rt/include/orc-rt/bind.h
    M orc-rt/unittests/bind-test.cpp

  Log Message:
  -----------
  [orc-rt] std::forward unbound arguments when using bind_front. (#155723)

The call operator for the type returned by bind_front should forward its
arguments, rather than moving them. This ensures that we handle lvalue
references in unbound args correctly:

  auto B = bind_front([](int &) {});
  int N = 7;
  B(N); // <- no longer an error!



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