[yaml2obj] - Replace a loop with write_zeros(). NFCI.

This looks better.

llvm-svn: 359444
This commit is contained in:
George Rimar 2019-04-29 12:05:53 +00:00
parent 4828811a2d
commit bd8bfd333f
1 changed files with 1 additions and 2 deletions

View File

@ -40,8 +40,7 @@ class ContiguousBlobAccumulator {
Align = 1;
uint64_t CurrentOffset = InitialOffset + OS.tell();
uint64_t AlignedOffset = alignTo(CurrentOffset, Align);
for (; CurrentOffset != AlignedOffset; ++CurrentOffset)
OS.write('\0');
OS.write_zeros(AlignedOffset - CurrentOffset);
return AlignedOffset; // == CurrentOffset;
}