]> granicus.if.org Git - clang/commitdiff
remove a dead argument
authorChris Lattner <sabre@nondot.org>
Fri, 24 Aug 2007 21:41:10 +0000 (21:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 24 Aug 2007 21:41:10 +0000 (21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41377 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/Sema.h
Sema/SemaExpr.cpp

index 3eee2e30343c84568ec9477ed17a445b37800468..7eae1822d2eaf0764ce59be4720017e461233148 100644 (file)
@@ -420,7 +420,7 @@ private:
   QualType CheckIndirectionOperand(Expr *op, SourceLocation OpLoc);
   QualType CheckSizeOfAlignOfOperand(QualType type, SourceLocation loc, 
                                      bool isSizeof);
-  QualType CheckRealImagOperand(Expr *&Op, SourceLocation OpLoc, bool isImag);
+  QualType CheckRealImagOperand(Expr *&Op, SourceLocation OpLoc);
   
   /// type checking primary expressions.
   QualType CheckOCUVectorComponent(QualType baseType, SourceLocation OpLoc,
index ea2ec4a25c1f8087ae8ee25307ba5af47a533cc8..a0fa38e1d86295af4a888638fba19efb4c70d717 100644 (file)
@@ -271,7 +271,7 @@ ParseSizeOfAlignOfTypeExpr(SourceLocation OpLoc, bool isSizeof,
   return new SizeOfAlignOfTypeExpr(isSizeof, ArgTy, resultType, OpLoc, RPLoc);
 }
 
-QualType Sema::CheckRealImagOperand(Expr *&V, SourceLocation Loc, bool isImag) {
+QualType Sema::CheckRealImagOperand(Expr *&V, SourceLocation Loc) {
   DefaultFunctionArrayConversion(V);
   
   if (const ComplexType *CT = V->getType()->getAsComplexType())
@@ -1596,10 +1596,8 @@ Action::ExprResult Sema::ParseUnaryOp(SourceLocation OpLoc, tok::TokenKind Op,
     resultType = CheckSizeOfAlignOfOperand(Input->getType(), OpLoc, false);
     break;
   case UnaryOperator::Real:
-    resultType = CheckRealImagOperand(Input, OpLoc, false);
-    break;
   case UnaryOperator::Imag:
-    resultType = CheckRealImagOperand(Input, OpLoc, true);
+    resultType = CheckRealImagOperand(Input, OpLoc);
     break;
   case UnaryOperator::Extension:
     resultType = Input->getType();