diff options
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 922de777520..94d3f68b1a8 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1496,7 +1496,7 @@ const OutputSectionBase<ELFT> * SymbolTableSection<ELFT>::getOutputSection(SymbolBody *Sym) { switch (Sym->kind()) { case SymbolBody::DefinedSyntheticKind: - return &cast<DefinedSynthetic<ELFT>>(Sym)->Section; + return cast<DefinedSynthetic<ELFT>>(Sym)->Section; case SymbolBody::DefinedRegularKind: { auto &D = cast<DefinedRegular<ELFT>>(*Sym); if (D.Section) |

