diff options
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index db14ed5e33c..fc1350190d0 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -181,9 +181,9 @@ MemoryBufferRef ArchiveFile::getMember(const Archive::Symbol *Sym) { Twine("Could not get the member for symbol ") + Sym->getName()); Archive::child_iterator It = *ItOrErr; - if (!Seen.insert(It->getChildOffset()).second) { + if (!Seen.insert(It->getChildOffset()).second) return MemoryBufferRef(); - } + ErrorOr<MemoryBufferRef> Ret = It->getMemoryBufferRef(); error(Ret, Twine("Could not get the buffer for the member defining symbol ") + Sym->getName()); |

