зеркало из https://github.com/microsoft/clang-1.git
Remove unused parameter to FinalOverriders::PropagateOverrider.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
31b5c4bec4
Коммит
8be373b090
|
@ -151,7 +151,6 @@ private:
|
|||
/// and we want to override B::f with C::f, we also need to override A::f with
|
||||
/// C::f.
|
||||
void PropagateOverrider(const CXXMethodDecl *OldMD,
|
||||
BaseSubobject NewBase,
|
||||
uint64_t OverriderOffsetInLayoutClass,
|
||||
const CXXMethodDecl *NewMD,
|
||||
SubobjectOffsetsMapTy &Offsets);
|
||||
|
@ -243,7 +242,7 @@ void FinalOverriders::AddOverriders(BaseSubobject Base,
|
|||
continue;
|
||||
|
||||
// First, propagate the overrider.
|
||||
PropagateOverrider(MD, Base, OffsetInLayoutClass, MD, Offsets);
|
||||
PropagateOverrider(MD, OffsetInLayoutClass, MD, Offsets);
|
||||
|
||||
// Add the overrider as the final overrider of itself.
|
||||
OverriderInfo& Overrider = OverridersMap[std::make_pair(Base, MD)];
|
||||
|
@ -366,7 +365,6 @@ ComputeReturnAdjustmentBaseOffset(ASTContext &Context,
|
|||
}
|
||||
|
||||
void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
|
||||
BaseSubobject NewBase,
|
||||
uint64_t OverriderOffsetInLayoutClass,
|
||||
const CXXMethodDecl *NewMD,
|
||||
SubobjectOffsetsMapTy &Offsets) {
|
||||
|
@ -415,8 +413,8 @@ void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
|
|||
Overrider.Method = NewMD;
|
||||
|
||||
// And propagate it further.
|
||||
PropagateOverrider(OverriddenMD, NewBase, OverriderOffsetInLayoutClass,
|
||||
NewMD, Offsets);
|
||||
PropagateOverrider(OverriddenMD, OverriderOffsetInLayoutClass, NewMD,
|
||||
Offsets);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче