Fix buildbots.

llvm-svn: 305542
This commit is contained in:
Rui Ueyama 2017-06-16 02:42:33 +00:00
parent 881819ebfb
commit af0f33a853
1 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ Error BinaryStreamWriter::padToAlignment(uint32_t Align) {
if (NewOffset > getLength())
return make_error<BinaryStreamError>(stream_error_code::stream_too_short);
while (Offset < NewOffset)
writeInteger('\0');
if (auto EC = writeInteger('\0'))
return EC;
return Error::success();
}