aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/BinaryStreamTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/BinaryStreamTest.cpp')
-rw-r--r--llvm/unittests/Support/BinaryStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/BinaryStreamTest.cpp b/llvm/unittests/Support/BinaryStreamTest.cpp
index 5c5f724..fdd29a7 100644
--- a/llvm/unittests/Support/BinaryStreamTest.cpp
+++ b/llvm/unittests/Support/BinaryStreamTest.cpp
@@ -103,7 +103,7 @@ private:
};
constexpr endianness Endians[] = {big, little, native};
-constexpr uint32_t NumEndians = llvm::array_lengthof(Endians);
+constexpr uint32_t NumEndians = std::size(Endians);
constexpr uint32_t NumStreams = 2 * NumEndians;
class BinaryStreamTest : public testing::Test {