diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-20 14:16:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-20 14:16:56 +0000 |
commit | 2cab237b5dbfe1b3e9c7aa7a3c02d2b98fcf7462 (patch) | |
tree | 524fe828571f81358bba62fdb6d04c6e5e96a2a4 /contrib/llvm/include/llvm/Support/BinaryItemStream.h | |
parent | 6c7828a2807ea5e50c79ca42dbedf2b589ce63b2 (diff) | |
parent | 044eb2f6afba375a914ac9d8024f8f5142bb912e (diff) | |
download | src-2cab237b5dbfe1b3e9c7aa7a3c02d2b98fcf7462.tar.gz src-2cab237b5dbfe1b3e9c7aa7a3c02d2b98fcf7462.zip |
Notes
Diffstat (limited to 'contrib/llvm/include/llvm/Support/BinaryItemStream.h')
-rw-r--r-- | contrib/llvm/include/llvm/Support/BinaryItemStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/include/llvm/Support/BinaryItemStream.h b/contrib/llvm/include/llvm/Support/BinaryItemStream.h index fe7e6caeaafb..278723ddf8da 100644 --- a/contrib/llvm/include/llvm/Support/BinaryItemStream.h +++ b/contrib/llvm/include/llvm/Support/BinaryItemStream.h @@ -45,7 +45,7 @@ public: if (!ExpectedIndex) return ExpectedIndex.takeError(); const auto &Item = Items[*ExpectedIndex]; - if (auto EC = checkOffset(Offset, Size)) + if (auto EC = checkOffsetForRead(Offset, Size)) return EC; if (Size > Traits::length(Item)) return make_error<BinaryStreamError>(stream_error_code::stream_too_short); |