HomePhabricator

llvm: IPO: handle IRMover error handling, bug #45636

Authored by trofi on Apr 25 2020, 11:15 AM.

Description

llvm: IPO: handle IRMover error handling, bug #45636

Summary:
Missing error mangling is noticed in
https://bugs.llvm.org/show_bug.cgi?id=45636
where inconsistent profiling input caused
llvm/lld to crash as:

Program aborted due to an unhandled Error:
linking module flags 'ProfileSummary':
  IDs have conflicting values in 'Mutex_posix.o' and 'nsBrowserApp.o'

The change does not change the fact that LLVM crashes
but changes error output to say what was incorrect:

LLVM ERROR: Function Import: link error:
  linking module flags 'ProfileSummary':
    IDs have conflicting values in 'Mutex_posix.o' and 'nsBrowserApp.o'

Actual crash has yet to be fixed.

Reviewers: lattner

Reviewed By: lattner

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78676

Details

Committed
trofiApr 25 2020, 11:16 AM
Reviewer
lattner
Differential Revision
D78676: llvm: IPO: handle IRMover error handling, bug #45636
Parents
rG3a1afd8c3d4b: Rework DATA statement semantics to use typed expressions
Branches
Unknown
Tags
Unknown