Fix build due to const-correctness issue after last minute refactoring

llvm-svn: 307971
This commit is contained in:
Reid Kleckner 2017-07-13 22:05:30 +00:00
parent 05c70f5dba
commit d815a278d8
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ private:
}
}
Expected<uint32_t> translateOffsetIndex(uint32_t Offset) const {
Expected<uint32_t> translateOffsetIndex(uint32_t Offset) {
// Make sure the offset is somewhere in our items array.
if (Offset >= getLength())
return make_error<BinaryStreamError>(stream_error_code::stream_too_short);