[all-commits] [llvm/llvm-project] 19b4e9: [libc][cpp] Add a constructor to ArrayRef to const...
Siva Chandra via All-commits
all-commits at lists.llvm.org
Mon Feb 14 09:03:21 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 19b4e9d76ecc9a5343c093bc54d965734b996518
https://github.com/llvm/llvm-project/commit/19b4e9d76ecc9a5343c093bc54d965734b996518
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2022-02-14 (Mon, 14 Feb 2022)
Changed paths:
M libc/src/__support/CPP/ArrayRef.h
M libc/test/src/__support/CPP/arrayref_test.cpp
Log Message:
-----------
[libc][cpp] Add a constructor to ArrayRef to construct from void * data.
Also modified operator[] to return a reference to the array element.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D119725
More information about the All-commits
mailing list