[PATCH] D133716: [CAS] Add LLVMCAS library with InMemoryCAS implementation
Duncan P. N. Exon Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 16:06:06 PST 2022
dexonsmith added inline comments.
================
Comment at: llvm/include/llvm/ADT/StringExtras.h:61-74
+inline StringRef toStringRef(ArrayRef<char> Input) {
+ return StringRef(Input.begin(), Input.size());
+}
/// Construct a string ref from an array ref of unsigned chars.
-inline ArrayRef<uint8_t> arrayRefFromStringRef(StringRef Input) {
- return {Input.bytes_begin(), Input.bytes_end()};
+template <class CharT = uint8_t>
+inline ArrayRef<CharT> arrayRefFromStringRef(StringRef Input) {
----------------
Oh, just noticed these changes; I suggest separating these out and adding quick unit tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133716/new/
https://reviews.llvm.org/D133716
More information about the llvm-commits
mailing list