// can initialize the transparent union with the given expression.
AssignConvertType CheckTransparentUnionArgumentConstraints(QualType lhs,
Expr *&rExpr);
-
- // CheckCompoundAssignmentConstraints - Type check without performing any
- // conversions. For compound assignments, the "Check...Operands" methods
- // perform the necessary conversions.
- AssignConvertType CheckCompoundAssignmentConstraints(QualType lhs,
- QualType rhs);
// Helper function for CheckAssignmentConstraints (C99 6.5.16.1p1)
AssignConvertType CheckPointerTypesForAssignment(QualType lhsType,
return result;
}
-Sema::AssignConvertType
-Sema::CheckCompoundAssignmentConstraints(QualType lhsType, QualType rhsType) {
- return CheckAssignmentConstraints(lhsType, rhsType);
-}
-
QualType Sema::InvalidOperands(SourceLocation Loc, Expr *&lex, Expr *&rex) {
Diag(Loc, diag::err_typecheck_invalid_operands)
<< lex->getType() << rex->getType()
}
} else {
// Compound assignment "x += y"
- ConvTy = CheckCompoundAssignmentConstraints(LHSType, RHSType);
+ ConvTy = CheckAssignmentConstraints(LHSType, RHSType);
}
if (DiagnoseAssignmentResult(ConvTy, Loc, LHSType, RHSType,