summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-13 22:05:30 +0000
committerReid Kleckner <rnk@google.com>2017-07-13 22:05:30 +0000
commitd815a278d897534d0407be40366f237072c0727d (patch)
tree13ad3d308c74f649193a81a591a2452d53dd132e
parent05c70f5dbad16421a0909ff10452b63d7c2da5f1 (diff)
downloadbcm5719-llvm-d815a278d897534d0407be40366f237072c0727d.tar.gz
bcm5719-llvm-d815a278d897534d0407be40366f237072c0727d.zip
Fix build due to const-correctness issue after last minute refactoring
llvm-svn: 307971
-rw-r--r--llvm/include/llvm/Support/BinaryItemStream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/BinaryItemStream.h b/llvm/include/llvm/Support/BinaryItemStream.h
index 53f20fec137..8325a85af8d 100644
--- a/llvm/include/llvm/Support/BinaryItemStream.h
+++ b/llvm/include/llvm/Support/BinaryItemStream.h
@@ -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);
OpenPOWER on IntegriCloud