Skip to content

Commit 758e7e2

Browse files
committed
Fix formatting
1 parent f1d23b3 commit 758e7e2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenClass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void CIRGenFunction::emitCtorPrologue(const CXXConstructorDecl *cd,
258258
auto nonVirtualBaseInits =
259259
llvm::make_range(virtualBaseEnd, nonVirtualBaseEnd);
260260
auto memberInits = llvm::make_range(nonVirtualBaseEnd, allInits.end());
261-
261+
262262
const mlir::Value oldThisValue = cxxThisValue;
263263

264264
auto emitInitializer = [&](CXXCtorInitializer *baseInit) {

clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,15 +941,16 @@ void CIRRecordLowering::accumulateVBases() {
941941
CharUnits offset = astRecordLayout.getVBaseClassOffset(baseDecl);
942942
// If the vbase is a primary virtual base of some base, then it doesn't
943943
// get its own storage location but instead lives inside of that base.
944-
if (isOverlappingVBaseABI() &&
945-
astContext.isNearlyEmpty(baseDecl) &&
944+
if (isOverlappingVBaseABI() && astContext.isNearlyEmpty(baseDecl) &&
946945
!hasOwnStorage(cxxRecordDecl, baseDecl)) {
947-
members.push_back(MemberInfo(offset, MemberInfo::InfoKind::VBase, nullptr,
948-
baseDecl));
946+
members.push_back(
947+
MemberInfo(offset, MemberInfo::InfoKind::VBase, nullptr, baseDecl));
949948
continue;
950949
}
951950
// If we've got a vtordisp, add it as a storage type.
952-
if (astRecordLayout.getVBaseOffsetsMap().find(baseDecl)->second.hasVtorDisp())
951+
if (astRecordLayout.getVBaseOffsetsMap()
952+
.find(baseDecl)
953+
->second.hasVtorDisp())
953954
members.push_back(makeStorageInfo(offset - CharUnits::fromQuantity(4),
954955
getUIntNType(32)));
955956
members.push_back(MemberInfo(offset, MemberInfo::InfoKind::VBase,

0 commit comments

Comments
 (0)