[cfe-commits] r104207 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/SemaCXX/vararg-adl.cpp
Douglas Gregor
dgregor at apple.com
Wed May 19 19:26:51 PDT 2010
Author: dgregor
Date: Wed May 19 21:26:51 2010
New Revision: 104207
URL: http://llvm.org/viewvc/llvm-project?rev=104207&view=rev
Log:
Remove accidental commit
Removed:
cfe/trunk/test/SemaCXX/vararg-adl.cpp
Modified:
cfe/trunk/lib/Sema/SemaLookup.cpp
Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=104207&r1=104206&r2=104207&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Wed May 19 21:26:51 2010
@@ -1626,21 +1626,15 @@
// member, if any; and its direct and indirect base
// classes. Its associated namespaces are the namespaces in
// which its associated classes are defined.
- if (const RecordType *ClassType = T->getAs<RecordType>()) {
+ if (const RecordType *ClassType = T->getAs<RecordType>())
if (CXXRecordDecl *ClassDecl
= dyn_cast<CXXRecordDecl>(ClassType->getDecl())) {
- // The __builtin_va_list type does not participate in ADL.
- if (ClassDecl->getIdentifier() &&
- ClassDecl->getIdentifier()->isStr("__va_list_tag"))
- return;
-
addAssociatedClassesAndNamespaces(ClassDecl, Context,
AssociatedNamespaces,
AssociatedClasses);
return;
}
- }
-
+
// -- If T is an enumeration type, its associated namespace is
// the namespace in which it is defined. If it is class
// member, its associated class is the memberâs class; else
Removed: cfe/trunk/test/SemaCXX/vararg-adl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/vararg-adl.cpp?rev=104206&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/vararg-adl.cpp (original)
+++ cfe/trunk/test/SemaCXX/vararg-adl.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin -verify %s
-
-// PR6762
-#define a_list __builtin_va_list
-extern a_list l;
-extern int f (a_list arg);
-namespace n {
-int f(a_list arguments);
-void y() {
- f(l);
-}
-}
More information about the cfe-commits
mailing list