Skip to content

Commit eb67dc8

Browse files
committed
fmt
Created using spr 1.3.4
1 parent cc8aa72 commit eb67dc8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12547,14 +12547,12 @@ static bool isDesignatorAtObjectEnd(const ASTContext &Ctx, const LValue &LVal) {
1254712547
auto &Base = LVal.getLValueBase();
1254812548
if (auto *ME = dyn_cast_or_null<MemberExpr>(Base.dyn_cast<const Expr *>())) {
1254912549
if (auto *FD = dyn_cast<FieldDecl>(ME->getMemberDecl())) {
12550-
if (!IsLastOrInvalidFieldDecl(FD)) {
12550+
if (!IsLastOrInvalidFieldDecl(FD))
1255112551
return false;
12552-
}
1255312552
} else if (auto *IFD = dyn_cast<IndirectFieldDecl>(ME->getMemberDecl())) {
1255412553
for (auto *FD : IFD->chain()) {
12555-
if (!IsLastOrInvalidFieldDecl(cast<FieldDecl>(FD))) {
12554+
if (!IsLastOrInvalidFieldDecl(cast<FieldDecl>(FD)))
1255612555
return false;
12557-
}
1255812556
}
1255912557
}
1256012558
}
@@ -12590,9 +12588,8 @@ static bool isDesignatorAtObjectEnd(const ASTContext &Ctx, const LValue &LVal) {
1259012588
return false;
1259112589
BaseType = CT->getElementType();
1259212590
} else if (auto *FD = getAsField(Entry)) {
12593-
if (!IsLastOrInvalidFieldDecl(FD)) {
12591+
if (!IsLastOrInvalidFieldDecl(FD))
1259412592
return false;
12595-
}
1259612593
BaseType = FD->getType();
1259712594
} else {
1259812595
assert(getAsBaseClass(Entry) && "Expecting cast to a base class");

0 commit comments

Comments
 (0)