[LLD/PDB] Remove improper assert.

It's possible to have an empty object file, for example if you
just compile an empty .c file.  This file won't have any sections
so asserting that a file has chunks is definitely wrong.

llvm-svn: 330461
This commit is contained in:
Zachary Turner 2018-04-20 18:36:51 +00:00
parent e477eb6680
commit 041eb6fef6
1 changed files with 0 additions and 1 deletions

View File

@ -818,7 +818,6 @@ void PDBLinker::addObjFile(ObjFile *File) {
File->ModuleDBI->setObjFileName(Path);
auto Chunks = File->getChunks();
assert(!Chunks.empty());
uint32_t Modi = File->ModuleDBI->getModuleIndex();
for (Chunk *C : Chunks) {
auto *SecChunk = dyn_cast<SectionChunk>(C);