mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"
This reverts commit ef82063207.
- It conflicts with the existing llvm::size in STLExtras, which will now
never be called.
- Calling it without llvm:: breaks C++17 compat
This commit is contained in:
@@ -77,7 +77,7 @@ static_assert((sizeof(g_format_infos) / sizeof(g_format_infos[0])) ==
|
||||
kNumFormats,
|
||||
"All formats must have a corresponding info entry.");
|
||||
|
||||
static uint32_t g_num_format_infos = llvm::size(g_format_infos);
|
||||
static uint32_t g_num_format_infos = llvm::array_lengthof(g_format_infos);
|
||||
|
||||
static bool GetFormatFromFormatChar(char format_char, Format &format) {
|
||||
for (uint32_t i = 0; i < g_num_format_infos; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user