[ASTImporter] Add linkage check to ASTNodeImporter::hasSameVisibilityContext…

Authored by shafik on Feb 20 2020, 12:28 PM.


[ASTImporter] Add linkage check to ASTNodeImporter::hasSameVisibilityContext and rename to hasSameVisibilityContextAndLinkage

This fixed is based on the assert in LinkageComputer::getLVForDecl(...) which assumes that all the decls in a redecl chain have the same linkage.

Differential Revision: https://reviews.llvm.org/D74639