From: Rui Ueyama Date: Fri, 16 Jun 2017 02:42:33 +0000 (+0000) Subject: Fix buildbots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a18969a6644f385faf57ca847ff50a3b0827496;p=llvm Fix buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305542 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/BinaryStreamWriter.cpp b/lib/Support/BinaryStreamWriter.cpp index 9c47a5cf1f7..c4276518b19 100644 --- a/lib/Support/BinaryStreamWriter.cpp +++ b/lib/Support/BinaryStreamWriter.cpp @@ -84,6 +84,7 @@ Error BinaryStreamWriter::padToAlignment(uint32_t Align) { if (NewOffset > getLength()) return make_error(stream_error_code::stream_too_short); while (Offset < NewOffset) - writeInteger('\0'); + if (auto EC = writeInteger('\0')) + return EC; return Error::success(); }