зеркало из https://github.com/microsoft/clang-1.git
Constify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
58cfbdef4d
Коммит
071d61043a
|
@ -1705,7 +1705,7 @@ static void *GetKeyForMember(CXXBaseOrMemberInitializer *Member,
|
|||
|
||||
static void
|
||||
DiagnoseBaseOrMemInitializerOrder(Sema &SemaRef,
|
||||
CXXConstructorDecl *Constructor,
|
||||
const CXXConstructorDecl *Constructor,
|
||||
CXXBaseOrMemberInitializer **MemInits,
|
||||
unsigned NumMemInits) {
|
||||
if (Constructor->isDependentContext())
|
||||
|
@ -1721,15 +1721,15 @@ DiagnoseBaseOrMemInitializerOrder(Sema &SemaRef,
|
|||
// of 1) base class declarations and 2) order of non-static data members.
|
||||
llvm::SmallVector<const void*, 32> AllBaseOrMembers;
|
||||
|
||||
CXXRecordDecl *ClassDecl
|
||||
= cast<CXXRecordDecl>(Constructor->getDeclContext());
|
||||
const CXXRecordDecl *ClassDecl = Constructor->getParent();
|
||||
|
||||
// Push virtual bases before others.
|
||||
for (CXXRecordDecl::base_class_iterator VBase =
|
||||
for (CXXRecordDecl::base_class_const_iterator VBase =
|
||||
ClassDecl->vbases_begin(),
|
||||
E = ClassDecl->vbases_end(); VBase != E; ++VBase)
|
||||
AllBaseOrMembers.push_back(GetKeyForBase(VBase->getType()));
|
||||
|
||||
for (CXXRecordDecl::base_class_iterator Base = ClassDecl->bases_begin(),
|
||||
for (CXXRecordDecl::base_class_const_iterator Base = ClassDecl->bases_begin(),
|
||||
E = ClassDecl->bases_end(); Base != E; ++Base) {
|
||||
// Virtuals are alread in the virtual base list and are constructed
|
||||
// first.
|
||||
|
|
Загрузка…
Ссылка в новой задаче