forked from OSchip/llvm-project
[yaml2obj] - Replace a loop with write_zeros(). NFCI.
This looks better. llvm-svn: 359444
This commit is contained in:
parent
4828811a2d
commit
bd8bfd333f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue