[modules] Rationalize the behavior of Decl::declarationReplaces, and inparticular don't assume that two declarations of the same kind in the samecontext are declaring the same entity. That's not tr
[modules] Rationalize the behavior of Decl::declarationReplaces, and inparticular don't assume that two declarations of the same kind in the samecontext are declaring the same entity. That's not true when the same name isdeclared multiple times as internal-linkage symbols within a module.(getCanonicalDecl is cheap now, so we can just use it here.)llvm-svn: 251898
show more ...