diff options
Diffstat (limited to 'include/llvm/Support/BinaryStreamReader.h')
| -rw-r--r-- | include/llvm/Support/BinaryStreamReader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Support/BinaryStreamReader.h b/include/llvm/Support/BinaryStreamReader.h index fe77b550c453..392958de30d5 100644 --- a/include/llvm/Support/BinaryStreamReader.h +++ b/include/llvm/Support/BinaryStreamReader.h @@ -203,11 +203,12 @@ public: /// \returns a success error code if the data was successfully read, otherwise /// returns an appropriate error code. template <typename T, typename U> - Error readArray(VarStreamArray<T, U> &Array, uint32_t Size) { + Error readArray(VarStreamArray<T, U> &Array, uint32_t Size, + uint32_t Skew = 0) { BinaryStreamRef S; if (auto EC = readStreamRef(S, Size)) return EC; - Array.setUnderlyingStream(S); + Array.setUnderlyingStream(S, Skew); return Error::success(); } |
