This is an archive of the discontinued LLVM Phabricator instance.

Fix an issue where opt crashed when loading a non-existent plugin library
Needs ReviewPublic

Authored by pzzp on May 13 2021, 6:14 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

The function runPassPipeline forgets to consume the error of load plugin library but just print an message, so it ends up with an unexpected assert failure when LLVM_ENABLE_ABI_BREAKING_CHECKS enabled.

Diff Detail

Event Timeline

pzzp requested review of this revision.May 13 2021, 6:14 AM
pzzp created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 6:14 AM