[llvm] r307971 - Fix build due to const-correctness issue after last minute refactoring
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 15:05:30 PDT 2017
Author: rnk
Date: Thu Jul 13 15:05:30 2017
New Revision: 307971
URL: http://llvm.org/viewvc/llvm-project?rev=307971&view=rev
Log:
Fix build due to const-correctness issue after last minute refactoring
Modified:
llvm/trunk/include/llvm/Support/BinaryItemStream.h
Modified: llvm/trunk/include/llvm/Support/BinaryItemStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/BinaryItemStream.h?rev=307971&r1=307970&r2=307971&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/BinaryItemStream.h (original)
+++ llvm/trunk/include/llvm/Support/BinaryItemStream.h Thu Jul 13 15:05:30 2017
@@ -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);
More information about the llvm-commits
mailing list