Skip to content

Commit 4dede5e

Browse files
committed
[Sema] Remove redundant check in an else branch. NFC
after https://reviews.llvm.org/D83788 Fix #91090
1 parent 1b90095 commit 4dede5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17208,11 +17208,11 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType ConvTy,
1720817208
}
1720917209
CheckInferredResultType = DstType->isObjCObjectPointerType() &&
1721017210
SrcType->isObjCObjectPointerType();
17211-
if (!CheckInferredResultType) {
17212-
ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this);
17213-
} else if (CheckInferredResultType) {
17211+
if (CheckInferredResultType) {
1721417212
SrcType = SrcType.getUnqualifiedType();
1721517213
DstType = DstType.getUnqualifiedType();
17214+
} else {
17215+
ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this);
1721617216
}
1721717217
MayHaveConvFixit = true;
1721817218
break;

0 commit comments

Comments
 (0)