commit | af0f33a8532e2f28d39e92a43a59e694f20c0137 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Fri Jun 16 02:42:33 2017 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Fri Jun 16 02:42:33 2017 +0000 |
tree | a091e41108444307cee053c1c99cdd6c126bd55d | |
parent | 881819ebfbbe3a9df435ef3c27688935c5a36d60 [diff] [blame] |
Fix buildbots. llvm-svn: 305542
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 @@ 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(); }