Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow different global references to the same name
Combining CGUs can result in code that references a static variable through both an Item and a ForeignItem with the same name. We don't care that the global was already created by a ForeignItem reference when we see the Item reference, as long as the LLVM types of the ForeignItem and Item match. Fixes #66464
- Loading branch information