summaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-06-16 02:42:33 +0000
committerRui Ueyama <ruiu@google.com>2017-06-16 02:42:33 +0000
commit9a18969a6644f385faf57ca847ff50a3b0827496 (patch)
tree9f58d79c434b7e58de7bd6cf54bc62fb5673ebc2 /lib/Support
parent04c012651fdecb300b69ef077d1026f831809b1d (diff)
Fix buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/BinaryStreamWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/BinaryStreamWriter.cpp b/lib/Support/BinaryStreamWriter.cpp
index 9c47a5cf1f74..c4276518b191 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<BinaryStreamError>(stream_error_code::stream_too_short);
while (Offset < NewOffset)
- writeInteger('\0');
+ if (auto EC = writeInteger('\0'))
+ return EC;
return Error::success();
}