diff options
author | Rui Ueyama <ruiu@google.com> | 2017-06-16 02:42:33 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-06-16 02:42:33 +0000 |
commit | af0f33a8532e2f28d39e92a43a59e694f20c0137 (patch) | |
tree | a091e41108444307cee053c1c99cdd6c126bd55d | |
parent | 881819ebfbbe3a9df435ef3c27688935c5a36d60 (diff) | |
download | bcm5719-llvm-af0f33a8532e2f28d39e92a43a59e694f20c0137.tar.gz bcm5719-llvm-af0f33a8532e2f28d39e92a43a59e694f20c0137.zip |
Fix buildbots.
llvm-svn: 305542
-rw-r--r-- | llvm/lib/Support/BinaryStreamWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/BinaryStreamWriter.cpp b/llvm/lib/Support/BinaryStreamWriter.cpp index 9c47a5cf1f7..c4276518b19 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<BinaryStreamError>(stream_error_code::stream_too_short); while (Offset < NewOffset) - writeInteger('\0'); + if (auto EC = writeInteger('\0')) + return EC; return Error::success(); } |