From 74ed76bb0eb11aa10cf78602906d35720d2c4333 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 24 Aug 2007 21:41:10 +0000 Subject: [PATCH] remove a dead argument llvm-svn: 41377 --- clang/Sema/Sema.h | 2 +- clang/Sema/SemaExpr.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/clang/Sema/Sema.h b/clang/Sema/Sema.h index 3eee2e30343c..7eae1822d2ea 100644 --- a/clang/Sema/Sema.h +++ b/clang/Sema/Sema.h @@ -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, diff --git a/clang/Sema/SemaExpr.cpp b/clang/Sema/SemaExpr.cpp index ea2ec4a25c1f..a0fa38e1d862 100644 --- a/clang/Sema/SemaExpr.cpp +++ b/clang/Sema/SemaExpr.cpp @@ -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();