[lld] r331779 - Fix a bug that a copy of a large vector was created. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue May 8 10:50:43 PDT 2018
Author: ruiu
Date: Tue May 8 10:50:43 2018
New Revision: 331779
URL: http://llvm.org/viewvc/llvm-project?rev=331779&view=rev
Log:
Fix a bug that a copy of a large vector was created. NFC.
Modified:
lld/trunk/ELF/LTO.cpp
Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=331779&r1=331778&r2=331779&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Tue May 8 10:50:43 2018
@@ -176,7 +176,7 @@ void BitcodeCompiler::add(BitcodeFile &F
}
unsigned SymNum = 0;
- std::vector<Symbol *> Syms = F.getSymbols();
+ ArrayRef<Symbol *> Syms = F.getSymbols();
std::vector<lto::SymbolResolution> Resols(Syms.size());
bool IsExecutable = !Config->Shared && !Config->Relocatable;
More information about the llvm-commits
mailing list