diff --git a/include/llvm/Support/BinaryItemStream.h b/include/llvm/Support/BinaryItemStream.h index 53f20fec137..8325a85af8d 100644 --- a/include/llvm/Support/BinaryItemStream.h +++ b/include/llvm/Support/BinaryItemStream.h @@ -84,7 +84,7 @@ private: } } - Expected translateOffsetIndex(uint32_t Offset) const { + Expected translateOffsetIndex(uint32_t Offset) { // Make sure the offset is somewhere in our items array. if (Offset >= getLength()) return make_error(stream_error_code::stream_too_short);