This patch helps change the return type of `writeVariableSizedInteger()` from `void` to `Error`. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D81915