This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Fix linking with an alias defined using another alias.
ClosedPublic

Authored by efriedma on Jul 13 2018, 12:41 PM.

Details

Summary

When we're copying an alias which will be defined later, we need to build a GlobalAlias, or else we'll crash later in IRLinker::linkGlobalValueBody.

clang sometimes constructs aliases like this for C++ destructors.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Jul 13 2018, 12:41 PM
pcc accepted this revision.Jul 13 2018, 2:56 PM

LGTM

This revision is now accepted and ready to land.Jul 13 2018, 2:56 PM
This revision was automatically updated to reflect the committed changes.