[all-commits] [llvm/llvm-project] 8de4cb: [orc-rt] Tighten move_only_function ShouldCopyInit...

Lang Hames via All-commits all-commits at lists.llvm.org
Fri Sep 25 06:31:36 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8de4cb45931adab063265b565408ff2b72be668d
      https://github.com/llvm/llvm-project/commit/8de4cb45931adab063265b565408ff2b72be668d
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M orc-rt/test/unit/support/move_only_function-test.cpp

  Log Message:
  -----------
  [orc-rt] Tighten move_only_function ShouldCopyInitialize test. (#226483)

ShouldCopyInitialize only checked that constructing a move_only_function
from an lvalue didn't move the callable, so it passed when the callable
was held by reference and never copied at all.

This commit replaces the moved flag with copy and move counters, and
checks that construction performs exactly one copy and no moves.



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