Skip to content

Commit

Permalink
Ignore potential errors during dbg-related object construction on Dar…
Browse files Browse the repository at this point in the history
…win. (#44637) (#44644)

(cherry picked from commit efa2430)

Co-authored-by: Tim Besard <[email protected]>
  • Loading branch information
ararslan and maleadt authored Mar 16, 2022
1 parent 6195061 commit 1c1d99c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,10 @@ static objfileentry_t &find_object_file(uint64_t fbase, StringRef fname) JL_NOTS
StringRef((const char *)fbase, msize), "", false);
auto origerrorobj = llvm::object::ObjectFile::createObjectFile(
membuf->getMemBufferRef(), file_magic::unknown);
if (!origerrorobj)
if (!origerrorobj) {
ignoreError(origerrorobj);
return entry;
}

llvm::object::MachOObjectFile *morigobj = (llvm::object::MachOObjectFile*)
origerrorobj.get().get();
Expand Down

0 comments on commit 1c1d99c

Please sign in to comment.