Because the recent change about ODR type uniquing in the context,
we can reach types defined in another module during IR linking.
This triggered some assertions in case we IR link without starting
from an empty module. To alleviate that, we can self-map metadata
defined in the destination module so that they won't be visited.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/ThinLTO/X86/crash_debuginfo.ll | ||
---|---|---|
8 | The "CHECK-NOT" fires when bar isn't imported (we get an undefined referenced to bar), this relies on the inliner. |
How are you verifying that bar is imported? Can you check for the inlined add in the body of foo?