diff options
-rw-r--r-- | lld/COFF/Symbols.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h index cb9ab39c9ce..1b83f73ff20 100644 --- a/lld/COFF/Symbols.h +++ b/lld/COFF/Symbols.h @@ -154,7 +154,7 @@ public: bool IsExternal = false, const coff_symbol_generic *S = nullptr, SectionChunk *C = nullptr) - : DefinedCOFF(DefinedRegularKind, F, N, S), Data(&C->Repl) { + : DefinedCOFF(DefinedRegularKind, F, N, S), Data(C ? &C->Repl : nullptr) { this->IsExternal = IsExternal; this->IsCOMDAT = IsCOMDAT; } |