diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-28 03:56:09 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-28 03:56:09 +0000 |
commit | 9d29543284e75648ac89c6e9586fc7cf786cf66f (patch) | |
tree | 7f710aadc6d00388d32dbb1e5d994f70c75aabcf /lib/Sema/SemaDecl.cpp | |
parent | b8abff66a8d30356c82314c4734c692cdd479e5e (diff) |
Don't return a pointer to an UnresolvedSetImpl in the CXXRecordDecl interface,
expose only the iterators instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index edf50d20ec..eb75329461 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -10369,10 +10369,10 @@ void Sema::ActOnFields(Scope* S, if (CXXRecordDecl *CXXRecord = dyn_cast<CXXRecordDecl>(Record)) { if (!CXXRecord->isInvalidDecl()) { // Set access bits correctly on the directly-declared conversions. - UnresolvedSetImpl *Convs = CXXRecord->getConversionFunctions(); - for (UnresolvedSetIterator I = Convs->begin(), E = Convs->end(); - I != E; ++I) - Convs->setAccess(I, (*I)->getAccess()); + for (CXXRecordDecl::conversion_iterator + I = CXXRecord->conversion_begin(), + E = CXXRecord->conversion_end(); I != E; ++I) + I.setAccess((*I)->getAccess()); if (!CXXRecord->isDependentType()) { // Adjust user-defined destructor exception spec. |