[lld] r251259 - Another fix of -Wqual-const warning.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 13:14:08 PDT 2015
Author: grimar
Date: Sun Oct 25 15:14:07 2015
New Revision: 251259
URL: http://llvm.org/viewvc/llvm-project?rev=251259&view=rev
Log:
Another fix of -Wqual-const warning.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=251259&r1=251258&r2=251259&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Sun Oct 25 15:14:07 2015
@@ -750,7 +750,7 @@ void MergeOutputSection<ELFT>::addSectio
this->Header.sh_addralign = Align;
ArrayRef<uint8_t> D = S->getSectionData();
- StringRef Data((char *)D.data(), D.size());
+ StringRef Data((const char *)D.data(), D.size());
uintX_t EntSize = S->getSectionHdr()->sh_entsize;
uintX_t Offset = 0;
More information about the llvm-commits
mailing list