Fix a bug that a copy of a large vector was created. NFC.

llvm-svn: 331779
This commit is contained in:
Rui Ueyama 2018-05-08 17:50:43 +00:00
parent c29229a644
commit 2f9fa42892
1 changed files with 1 additions and 1 deletions

View File

@ -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;