[all-commits] [llvm/llvm-project] 101fd8: [ArrayRef] Add constructor from iterator_range<U*>...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Apr 30 04:57:20 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 101fd87f98c9354103311db9523bc00b9df71d18
https://github.com/llvm/llvm-project/commit/101fd87f98c9354103311db9523bc00b9df71d18
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-04-30 (Wed, 30 Apr 2025)
Changed paths:
M llvm/include/llvm/ADT/ArrayRef.h
M llvm/unittests/ADT/ArrayRefTest.cpp
Log Message:
-----------
[ArrayRef] Add constructor from iterator_range<U*> (NFC). (#137796)
Add a new constructor to ArrayRef that takes an iterator_range with a
random access iterator that can be converted.
This can help to avoid creating unnecessary iterator_ranges for types
where an ArrayRef can already be constructed. To be used in
https://github.com/llvm/llvm-project/pull/137798.
PR: https://github.com/llvm/llvm-project/pull/137796
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