diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
commit | f15014ff549a8686671a599f7b49ce9963769eaf (patch) | |
tree | c71b273ecd3983fba8bfd6777b534c045b120619 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 297bbf106288b0d673709ca02917d82e7bebdf1a (diff) | |
download | llvm-f15014ff549a8686671a599f7b49ce9963769eaf.zip llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.gz llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.bz2 |
Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"
This reverts commit ef8206320769ad31422a803a0d6de6077fd231d2.
- It conflicts with the existing llvm::size in STLExtras, which will now
never be called.
- Calling it without llvm:: breaks C++17 compat
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index b9fd4d3..cc4c953 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -292,7 +292,7 @@ TEST_P(CoverageMappingTest, basic_write_read) { TEST_P(CoverageMappingTest, correct_deserialize_for_more_than_two_files) { const char *FileNames[] = {"bar", "baz", "foo"}; - static const unsigned N = size(FileNames); + static const unsigned N = array_lengthof(FileNames); startFunction("func", 0x1234); for (unsigned I = 0; I < N; ++I) @@ -321,7 +321,7 @@ TEST_P(CoverageMappingTest, load_coverage_for_more_than_two_files) { ProfileWriter.addRecord({"func", 0x1234, {0}}, Err); const char *FileNames[] = {"bar", "baz", "foo"}; - static const unsigned N = size(FileNames); + static const unsigned N = array_lengthof(FileNames); startFunction("func", 0x1234); for (unsigned I = 0; I < N; ++I) |