[cfe-commits] r74268 - /cfe/trunk/lib/Sema/SemaLookup.cpp
Anders Carlsson
andersca at mac.com
Thu Jun 25 22:14:36 PDT 2009
Author: andersca
Date: Fri Jun 26 00:14:36 2009
New Revision: 74268
URL: http://llvm.org/viewvc/llvm-project?rev=74268&view=rev
Log:
Fix failing test.
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=74268&r1=74267&r2=74268&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Fri Jun 26 00:14:36 2009
@@ -394,7 +394,9 @@
if (ObjCCompatibleAliasDecl *Alias
= dyn_cast_or_null<ObjCCompatibleAliasDecl>(D))
D = Alias->getClassInterface();
-
+ if (UsingDecl *UD = dyn_cast_or_null<UsingDecl>(D))
+ D = UD->getTargetDecl();
+
Result.StoredKind = SingleDecl;
Result.First = reinterpret_cast<uintptr_t>(D);
Result.Last = 0;
More information about the cfe-commits
mailing list