remove a dead argument
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41377 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/Sema.h b/Sema/Sema.h
index 3eee2e3..7eae182 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -420,7 +420,7 @@
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/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index ea2ec4a..a0fa38e 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -271,7 +271,7 @@
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 @@
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();