[all-commits] [llvm/llvm-project] c88ba8: [ADT] Refine MutableArrayRef forwarding constructo...

Dmitrii Makarenko via All-commits all-commits at lists.llvm.org
Thu Mar 5 07:09:25 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c88ba88da52b963692ab30e75821b69dad2c1bbd
      https://github.com/llvm/llvm-project/commit/c88ba88da52b963692ab30e75821b69dad2c1bbd
  Author: Dmitrii Makarenko <dmitrii.makarenko at intel.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M llvm/include/llvm/ADT/ArrayRef.h
    M llvm/unittests/ADT/ArrayRefTest.cpp

  Log Message:
  -----------
  [ADT] Refine MutableArrayRef forwarding constructor constraints (#183806)

Keep MutableArrayRef on a single C&& constructor, with SFINAE on direct
check on `C::data()`. This keeps const std::span<int> supported and
rejects const vector/smallvector sources for MutableArrayRef<int>.



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