[cfe-commits] r71928 - in /cfe/trunk/lib/Sema: Sema.h SemaExpr.cpp
Eli Friedman
eli.friedman at gmail.com
Fri May 15 22:56:02 PDT 2009
Author: efriedma
Date: Sat May 16 00:56:02 2009
New Revision: 71928
URL: http://llvm.org/viewvc/llvm-project?rev=71928&view=rev
Log:
Remove useless wrapper.
Modified:
cfe/trunk/lib/Sema/Sema.h
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=71928&r1=71927&r2=71928&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Sat May 16 00:56:02 2009
@@ -2512,12 +2512,6 @@
// 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,
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=71928&r1=71927&r2=71928&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat May 16 00:56:02 2009
@@ -3446,11 +3446,6 @@
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()
@@ -4241,7 +4236,7 @@
}
} else {
// Compound assignment "x += y"
- ConvTy = CheckCompoundAssignmentConstraints(LHSType, RHSType);
+ ConvTy = CheckAssignmentConstraints(LHSType, RHSType);
}
if (DiagnoseAssignmentResult(ConvTy, Loc, LHSType, RHSType,
More information about the cfe-commits
mailing list