[cfe-commits] r41377 - in /cfe/trunk/Sema: Sema.h SemaExpr.cpp
Chris Lattner
sabre at nondot.org
Fri Aug 24 14:41:10 PDT 2007
Author: lattner
Date: Fri Aug 24 16:41:10 2007
New Revision: 41377
URL: http://llvm.org/viewvc/llvm-project?rev=41377&view=rev
Log:
remove a dead argument
Modified:
cfe/trunk/Sema/Sema.h
cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/trunk/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/Sema.h?rev=41377&r1=41376&r2=41377&view=diff
==============================================================================
--- cfe/trunk/Sema/Sema.h (original)
+++ cfe/trunk/Sema/Sema.h Fri Aug 24 16:41:10 2007
@@ -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,
Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=41377&r1=41376&r2=41377&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Fri Aug 24 16:41:10 2007
@@ -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();
More information about the cfe-commits
mailing list