From 623712be8a498e0da0f5be0a77678cd2bfa35be2 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 16 May 2009 05:56:02 +0000 Subject: [PATCH] Remove useless wrapper. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71928 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/Sema.h | 6 ------ lib/Sema/SemaExpr.cpp | 7 +------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 8c88e9ec43..817924a425 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -2512,12 +2512,6 @@ public: // 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, diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 41c868e005..0c976b08a2 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -3446,11 +3446,6 @@ Sema::CheckSingleAssignmentConstraints(QualType lhsType, Expr *&rExpr) { 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 @@ QualType Sema::CheckAssignmentOperands(Expr *LHS, Expr *&RHS, } } else { // Compound assignment "x += y" - ConvTy = CheckCompoundAssignmentConstraints(LHSType, RHSType); + ConvTy = CheckAssignmentConstraints(LHSType, RHSType); } if (DiagnoseAssignmentResult(ConvTy, Loc, LHSType, RHSType, -- 2.40.0