From af0f33a8532e2f28d39e92a43a59e694f20c0137 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 16 Jun 2017 02:42:33 +0000 Subject: Fix buildbots. llvm-svn: 305542 --- llvm/lib/Support/BinaryStreamWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp') diff --git a/llvm/lib/Support/BinaryStreamWriter.cpp b/llvm/lib/Support/BinaryStreamWriter.cpp index 9c47a5c..c427651 100644 --- a/llvm/lib/Support/BinaryStreamWriter.cpp +++ b/llvm/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(); } -- cgit v1.1