[all-commits] [llvm/llvm-project] 1173ec: [lld] Use std::size instead of llvm::array_lengthof
Joe Loser via All-commits
all-commits at lists.llvm.org
Fri Sep 9 14:29:55 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1173ecf9fbc7140339322900747796fe2bca36f0
https://github.com/llvm/llvm-project/commit/1173ecf9fbc7140339322900747796fe2bca36f0
Author: Joe Loser <joeloser at fastmail.com>
Date: 2022-09-09 (Fri, 09 Sep 2022)
Changed paths:
M lld/COFF/Chunks.cpp
Log Message:
-----------
[lld] Use std::size instead of llvm::array_lengthof
LLVM contains a helpful function for getting the size of a C-style
array: `llvm::array_lengthof`. This is useful prior to C++17, but not as
helpful for C++17 or later: `std::size` already has support for C-style
arrays.
Differential Revision: https://reviews.llvm.org/D133598
More information about the All-commits
mailing list