diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 1acaae432b4b..fff22f69715b 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -306,7 +306,7 @@ public: // If non-null the symbol has a Thunk that may be used as an alternative // destination for callers of this Symbol. - Thunk *ThunkData; + Thunk *ThunkData = nullptr; bool needsCopy() const { return this->NeedsCopyOrPltAddr && !this->isFunc(); } };