Commit 5cd86f8c authored by Richard Smith's avatar Richard Smith
Browse files

[modules] Rationalize the behavior of Decl::declarationReplaces, and in

particular don't assume that two declarations of the same kind in the same
context are declaring the same entity. That's not true when the same name is
declared multiple times as internal-linkage symbols within a module.
(getCanonicalDecl is cheap now, so we can just use it here.)

llvm-svn: 251898
parent 7339b9d7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment