Skip to content

Commit 43bb6ba

Browse files
committed
[clang] Fix GCC -Wparentheses warning. NFC.
Without this gcc warned like: clang/lib/Sema/SemaExprCXX.cpp:4656:74: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 4655 | From->isNullPointerConstant(Context, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4656 | Expr::NPC_ValueDependentIsNull) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 4657 | "Expr must be null pointer constant!"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent e6b55cd commit 43bb6ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4651,9 +4651,9 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
46514651
From->getExprLoc(), From->getSourceRange(), CStyle,
46524652
MemberPointerConversionDirection::Downcast)) {
46534653
case MemberPointerConversionResult::Success:
4654-
assert(Kind != CK_NullToMemberPointer ||
4654+
assert((Kind != CK_NullToMemberPointer ||
46554655
From->isNullPointerConstant(Context,
4656-
Expr::NPC_ValueDependentIsNull) &&
4656+
Expr::NPC_ValueDependentIsNull)) &&
46574657
"Expr must be null pointer constant!");
46584658
break;
46594659
case MemberPointerConversionResult::Inaccessible:

0 commit comments

Comments
 (0)