There is no change in the validation, I'm not sure if it is dead code?
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The alias handling was specific to the old iterative inlining mechanism, so that is dead now. I would expect the variable handling to make a difference, since we were previously falling through to the normal selection logic. E.g. dest copy is an external decl but src has a definition - we would have picked the src copy but now will not (assuming variable not in GlobalsToImport set). I think the change is good given that is how the GlobalsToImport set is currently intended though. But would be good to confirm with a test case that previously we were doing the wrong thing w.r.t. variables and now are doing the right thing here.
lib/Linker/LinkModules.cpp | ||
---|---|---|
271–272 | Move this up above the isDeclarationForLinker calls since the results are no longer used here. |
Move this up above the isDeclarationForLinker calls since the results are no longer used here.