Fix -Wqual-const warning.

llvm-svn: 251241
This commit is contained in:
Rui Ueyama 2015-10-25 16:25:04 +00:00
parent 3f1085d538
commit 7ba639bdd6
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ template <class ELFT>
typename MergeInputSection<ELFT>::uintX_t
MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
ArrayRef<uint8_t> D = this->getSectionData();
StringRef Data((char *)D.data(), D.size());
StringRef Data((const char *)D.data(), D.size());
uintX_t Size = Data.size();
if (Offset >= Size)
error("Entry is past the end of the section");