[NFC] Use std::size(x) Instead of ArrayRef(x).size

This is equivalent for all kind of `x` accepted by ArrayRef.
This commit is contained in:
serge-sans-paille
2023-01-05 15:25:47 +01:00
parent 7b922fc0c3
commit 3fe7f6ab2d

View File

@@ -485,7 +485,7 @@ public:
if (!Abbrev) {
// If we don't have an abbrev to use, emit this in its fully unabbreviated
// form.
auto Count = static_cast<uint32_t>(ArrayRef(Vals).size());
auto Count = static_cast<uint32_t>(std::size(Vals));
EmitCode(bitc::UNABBREV_RECORD);
EmitVBR(Code, 6);
EmitVBR(Count, 6);