[lld] r251241 - Fix -Wqual-const warning.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 25 09:25:05 PDT 2015


Author: ruiu
Date: Sun Oct 25 11:25:04 2015
New Revision: 251241

URL: http://llvm.org/viewvc/llvm-project?rev=251241&view=rev
Log:
Fix -Wqual-const warning.

Modified:
    lld/trunk/ELF/InputSection.cpp

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=251241&r1=251240&r2=251241&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Sun Oct 25 11:25:04 2015
@@ -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");




More information about the llvm-commits mailing list