diff options
author | John McCall <rjmccall@apple.com> | 2010-01-20 00:46:10 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-20 00:46:10 +0000 |
commit | eec51cf1ba5f0e62c9cdb81b5c63babdd6e649ab (patch) | |
tree | 6b4c758b406c973f8164baa9940161bd18c2c718 /lib/Sema/SemaStmt.cpp | |
parent | 09cd6ef46e64f33fb01b3ecb5ba691e585ae999a (diff) |
Give UnresolvedSet the ability to store access specifiers for each declaration.
Change LookupResult to use UnresolvedSet. Also extract UnresolvedSet into its
own header and make it templated over an inline capacity.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index f0bbdfe762..0c207fa6e8 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -412,10 +412,10 @@ static bool CheckCXXSwitchCondition(Sema &S, SourceLocation SwitchLoc, llvm::SmallVector<CXXConversionDecl *, 4> ViableConversions; llvm::SmallVector<CXXConversionDecl *, 4> ExplicitConversions; if (const RecordType *RecordTy = CondType->getAs<RecordType>()) { - const UnresolvedSet *Conversions + const UnresolvedSetImpl *Conversions = cast<CXXRecordDecl>(RecordTy->getDecl()) ->getVisibleConversionFunctions(); - for (UnresolvedSet::iterator I = Conversions->begin(), + for (UnresolvedSetImpl::iterator I = Conversions->begin(), E = Conversions->end(); I != E; ++I) { if (CXXConversionDecl *Conversion = dyn_cast<CXXConversionDecl>(*I)) if (Conversion->getConversionType().getNonReferenceType() |