forked from OSchip/llvm-project
[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:
parent
e477eb6680
commit
041eb6fef6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue