This is an archive of the discontinued LLVM Phabricator instance.

Fix asserts when linking wrong address space declarations
ClosedPublic

Authored by arsenm on Sep 21 2018, 5:09 AM.

Details

Diff Detail

Event Timeline

arsenm created this revision.Sep 21 2018, 5:09 AM
efriedma accepted this revision.Sep 21 2018, 11:54 AM

LGTM

The only edge case I'm concerned about is that If you link together two modules, and neither has a definition, we just arbitrarily choose an address-space. But the AsmPrinter should be able to handle that, I guess.

This revision is now accepted and ready to land.Sep 21 2018, 11:54 AM
arsenm closed this revision.Sep 24 2018, 5:06 AM