|
@@ -7159,7 +7159,7 @@ QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS,
|
|
|
if ((LCanPointeeTy->isFunctionType() || RCanPointeeTy->isFunctionType())
|
|
|
&& !LHSIsNull && !RHSIsNull) {
|
|
|
diagnoseFunctionPointerToVoidComparison(
|
|
|
- *this, Loc, LHS, RHS, /*isError*/ isSFINAEContext());
|
|
|
+ *this, Loc, LHS, RHS, /*isError*/ (bool)isSFINAEContext());
|
|
|
|
|
|
if (isSFINAEContext())
|
|
|
return QualType();
|
|
@@ -8096,8 +8096,8 @@ static QualType CheckAddressOfOperand(Sema &S, ExprResult &OrigOp,
|
|
|
unsigned AddressOfError = AO_No_Error;
|
|
|
|
|
|
if (lval == Expr::LV_ClassTemporary || lval == Expr::LV_ArrayTemporary) {
|
|
|
- bool sfinae = S.isSFINAEContext();
|
|
|
- S.Diag(OpLoc, sfinae ? diag::err_typecheck_addrof_temporary
|
|
|
+ bool sfinae = (bool)S.isSFINAEContext();
|
|
|
+ S.Diag(OpLoc, S.isSFINAEContext() ? diag::err_typecheck_addrof_temporary
|
|
|
: diag::ext_typecheck_addrof_temporary)
|
|
|
<< op->getType() << op->getSourceRange();
|
|
|
if (sfinae)
|