[lld] r263376 - Cosmetic change. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 12 22:50:35 PST 2016


Author: ruiu
Date: Sun Mar 13 00:50:34 2016
New Revision: 263376

URL: http://llvm.org/viewvc/llvm-project?rev=263376&view=rev
Log:
Cosmetic change. NFC.

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=263376&r1=263375&r2=263376&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Sun Mar 13 00:50:34 2016
@@ -296,7 +296,8 @@ InterpSection<ELFT>::InterpSection()
 }
 
 template <class ELFT> void InterpSection<ELFT>::writeTo(uint8_t *Buf) {
-  memcpy(Buf, Config->DynamicLinker.data(), Config->DynamicLinker.size());
+  StringRef S = Config->DynamicLinker;
+  memcpy(Buf, S.data(), S.size());
 }
 
 template <class ELFT>




More information about the llvm-commits mailing list