mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user