diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-03 23:26:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-03 23:26:26 +0000 |
commit | b59643baf6f5b2edcf56ca430894af44d9d15faa (patch) | |
tree | 1965be3917792d234ac7ba55733a2e9f35be2774 /clang/lib/Sema/SemaDecl.cpp | |
parent | f83663a9cd23ea9ef4670f89a130ed649585c34e (diff) | |
download | bcm5719-llvm-b59643baf6f5b2edcf56ca430894af44d9d15faa.tar.gz bcm5719-llvm-b59643baf6f5b2edcf56ca430894af44d9d15faa.zip |
Test "merging" of typedef types across distinct modules. At present,
the AST reader doesn't actually perform a merge, because name lookup
knows how to merge identical typedefs together.
As part of this, teach C/Objective-C name lookup to return multiple
results in all cases, rather than first digging through the attributes
to see if the value is overloadable. This way, we'll catch ambiguous
lookups in C/Objective-C.
llvm-svn: 147498
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 9583ab6327f..43c9af58bc9 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -8010,8 +8010,6 @@ Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, // lookup. This is only actually possible in C++, where a few // things like templates still live in the tag namespace. } else { - assert(getLangOptions().CPlusPlus); - // Use a better diagnostic if an elaborated-type-specifier // found the wrong kind of type on the first // (non-redeclaration) lookup. |