[lld] r205034 - Attempt to unbreak buildbots.
Rui Ueyama
ruiu at google.com
Fri Mar 28 12:23:13 PDT 2014
Author: ruiu
Date: Fri Mar 28 14:23:13 2014
New Revision: 205034
URL: http://llvm.org/viewvc/llvm-project?rev=205034&view=rev
Log:
Attempt to unbreak buildbots.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp?rev=205034&r1=205033&r2=205034&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp Fri Mar 28 14:23:13 2014
@@ -199,7 +199,7 @@ void ELFLinkingContext::createInternalFi
std::vector<std::unique_ptr<File>> &files) const {
std::unique_ptr<SimpleFile> file(
new SimpleFile("<internal file for --defsym>"));
- for (auto i : getAbsoluteSymbols()) {
+ for (auto &i : getAbsoluteSymbols()) {
StringRef sym = i.first;
uint64_t val = i.second;
file->addAtom(*(new (_allocator) CommandLineAbsoluteAtom(*file, sym, val)));
More information about the llvm-commits
mailing list