This is an archive of the discontinued LLVM Phabricator instance.

[clang] Delete entry in LinkModules when std::moving the inner Module
DraftPublic

Authored by argentite on Mar 19 2023, 12:08 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary

LinkInModules() seems to assume it will be called only once and it
std::moves the inner Module from each LinkModule without deleting the
LinkModule itself causing nullptr dereferences in subsequent calls.

Diff Detail