diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 4c8e3594e5a7..3bf054851fee 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -46,7 +46,7 @@ static void forEachSuccessor(InputSection *Sec, typedef typename ELFT::Rela Elf_Rela; typedef typename ELFT::Shdr Elf_Shdr; - ObjectFile *File = Sec->getFile(); + lld::elf::ObjectFile *File = Sec->getFile(); ELFFile &Obj = File->getObj(); for (const Elf_Shdr *RelSec : Sec->RelocSections) { if (RelSec->sh_type == SHT_RELA) {