This was causing us to create duplicate metadata on global variables.
Test case by Adrian Prantl.
Fixes PR31012.
Differential D26622
Linker: Remove unnecessary call to copyMetadata in IRLinker::linkGlobalVariable. pcc on Nov 14 2016, 11:20 AM. Authored by
Details This was causing us to create duplicate metadata on global variables. Fixes PR31012.
Diff Detail
Event TimelineComment Actions Thanks for the quick turnaround. One question inline, but otherwise this looks good.
Comment Actions Actually I'm not sure that this is quite right yet. It isn't clear to me that we're doing the right thing in the case where we link a declaration followed by a definition. We at least need test cases covering that case. Comment Actions One more test case
|
So, is the metadata attached to Dst always identical to the one in Src, or could there be a situation where one is more complete / otherwise better than the other?