diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-03-26 22:27:09 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-03-26 22:27:09 +0000 |
| commit | ffbf705cc3656566d0f3ed710a860baa3eba1b85 (patch) | |
| tree | 56bd8ac3ef802f61c82aaade07d087a8a69da2ce /llvm/lib | |
| parent | 97112eeeffebd8212ea7bee0a469589261d3abba (diff) | |
| download | bcm5719-llvm-ffbf705cc3656566d0f3ed710a860baa3eba1b85.tar.gz bcm5719-llvm-ffbf705cc3656566d0f3ed710a860baa3eba1b85.zip | |
[Modules] Fix a sneaky bug in r233249 where we would look for implicit
constructors in the current lexical context even though name lookup
found them via some other context merged into the redecl chain.
This can only happen for implicit constructors which can only have the
name of the type of the current context, so we can fix this by simply
*always* merging those names first. This also has the advantage of
removing the walk of the current lexical context from the common case
when this is the only constructor name we need to deal with (implicit or
otherwise).
I've enhanced the tests to cover this case (and uncovered an unrelated
bug which I fixed in r233325).
llvm-svn: 233327
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

