[lld] [LLD] [COFF] Fix handling of comdat .drectve sections (PR #68116)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 09:02:02 PDT 2023
================
@@ -660,10 +660,15 @@ std::optional<Symbol *> ObjFile::createDefined(
if (prevailing) {
SectionChunk *c = readSection(sectionNumber, def, getName());
- sparseChunks[sectionNumber] = c;
- c->sym = cast<DefinedRegular>(leader);
----------------
aganea wrote:
nit: you could also insert at L664:
```
if (!c)
return nullptr;
```
https://github.com/llvm/llvm-project/pull/68116
More information about the llvm-commits
mailing list