summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2015-10-25 20:14:07 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2015-10-25 20:14:07 +0000
commitf940d5918f0f44de3b344a82aa68ed6eeb3a3b3c (patch)
tree7ad92b3098f3d3dfb2650a9545f06e2543f39a65
parent10a6e704088f203fa1e02ae072fbc2b7a3b203d8 (diff)
downloadbcm5719-llvm-f940d5918f0f44de3b344a82aa68ed6eeb3a3b3c.tar.gz
bcm5719-llvm-f940d5918f0f44de3b344a82aa68ed6eeb3a3b3c.zip
Another fix of -Wqual-const warning.
llvm-svn: 251259
-rw-r--r--lld/ELF/OutputSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 781d6c5baa1..b10239b0100 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -750,7 +750,7 @@ void MergeOutputSection<ELFT>::addSection(MergeInputSection<ELFT> *S) {
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;
OpenPOWER on IntegriCloud