[llvm] r305542 - Fix buildbots.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 15 19:42:33 PDT 2017
Author: ruiu
Date: Thu Jun 15 21:42:33 2017
New Revision: 305542
URL: http://llvm.org/viewvc/llvm-project?rev=305542&view=rev
Log:
Fix buildbots.
Modified:
llvm/trunk/lib/Support/BinaryStreamWriter.cpp
Modified: llvm/trunk/lib/Support/BinaryStreamWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/BinaryStreamWriter.cpp?rev=305542&r1=305541&r2=305542&view=diff
==============================================================================
--- llvm/trunk/lib/Support/BinaryStreamWriter.cpp (original)
+++ llvm/trunk/lib/Support/BinaryStreamWriter.cpp Thu Jun 15 21:42:33 2017
@@ -84,6 +84,7 @@ Error BinaryStreamWriter::padToAlignment
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();
}
More information about the llvm-commits
mailing list