]> granicus.if.org Git - clang/commitdiff
Remove useless wrapper.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 16 May 2009 05:56:02 +0000 (05:56 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 16 May 2009 05:56:02 +0000 (05:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71928 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.h
lib/Sema/SemaExpr.cpp

index 8c88e9ec43dce5b0311cbb44c1c611bef41d736a..817924a425f06a62d2a2184136481a59d3b93c97 100644 (file)
@@ -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, 
index 41c868e00558ce45eecc41c8c465b393024f7336..0c976b08a23925bd5b2eafa63c5c43a0c0d919b4 100644 (file)
@@ -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,