diff options
author | John McCall <rjmccall@apple.com> | 2009-11-17 05:59:44 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-17 05:59:44 +0000 |
commit | 3f746828d70bda31d6b19c07d430a569ad0e6048 (patch) | |
tree | 5187989d82f6729fdc92b34166bebb05d5396a86 /clang/lib/Sema/SemaLookup.cpp | |
parent | d6ea9028e7ebbb779b04fc961a0c5907a86dd7f7 (diff) | |
download | bcm5719-llvm-3f746828d70bda31d6b19c07d430a569ad0e6048.tar.gz bcm5719-llvm-3f746828d70bda31d6b19c07d430a569ad0e6048.zip |
Instead of hanging a using declaration's target decls directly off the using
decl, create shadow declarations and put them in scope like normal.
Work in progress.
llvm-svn: 89048
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 1c7dce0def1..58b95fc6790 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -297,7 +297,7 @@ void Sema::LookupResult::resolveKind() { // wherever the object, function, or enumerator name is visible. // But it's still an error if there are distinct tag types found, // even if they're not visible. (ref?) - if (HasTag && !Ambiguous && (HasFunction || HasNonFunction)) + if (HideTags && HasTag && !Ambiguous && (HasFunction || HasNonFunction)) Decls[UniqueTagIndex] = Decls[--N]; Decls.set_size(N); |