diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-06 04:23:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-06 04:23:48 +0000 |
commit | 0f4e2c4d0f46b5edb4159b2d982327475b797efe (patch) | |
tree | c893a8277ae403c41609130361a3d4d2fe141a6c /clang/lib/AST/NSAPI.cpp | |
parent | 9b000812a44316016abe214ae98212b3cdd079fc (diff) | |
download | bcm5719-llvm-0f4e2c4d0f46b5edb4159b2d982327475b797efe.tar.gz bcm5719-llvm-0f4e2c4d0f46b5edb4159b2d982327475b797efe.zip |
[modules] Defer setting up the lookup table for a DeclContext until we can
determine the primary context, rather than sometimes registering the lookup
table on the wrong context.
This exposed a couple of bugs:
* the odr violation check didn't deal properly with mergeable declarations
if the declaration retained by name lookup wasn't in the canonical
definition of the class
* the (broken) RewriteDecl mechanism would emit two name lookup tables for
the same DeclContext into the same module file (one as part of the
rewritten declaration and one as a visible update for the old declaration)
These are both fixed too.
llvm-svn: 244192
Diffstat (limited to 'clang/lib/AST/NSAPI.cpp')
0 files changed, 0 insertions, 0 deletions