forked from OSchip/llvm-project
parent
9f0ad96b3e
commit
74ed76bb0e
|
@ -420,7 +420,7 @@ private:
|
||||||
QualType CheckIndirectionOperand(Expr *op, SourceLocation OpLoc);
|
QualType CheckIndirectionOperand(Expr *op, SourceLocation OpLoc);
|
||||||
QualType CheckSizeOfAlignOfOperand(QualType type, SourceLocation loc,
|
QualType CheckSizeOfAlignOfOperand(QualType type, SourceLocation loc,
|
||||||
bool isSizeof);
|
bool isSizeof);
|
||||||
QualType CheckRealImagOperand(Expr *&Op, SourceLocation OpLoc, bool isImag);
|
QualType CheckRealImagOperand(Expr *&Op, SourceLocation OpLoc);
|
||||||
|
|
||||||
/// type checking primary expressions.
|
/// type checking primary expressions.
|
||||||
QualType CheckOCUVectorComponent(QualType baseType, SourceLocation OpLoc,
|
QualType CheckOCUVectorComponent(QualType baseType, SourceLocation OpLoc,
|
||||||
|
|
|
@ -271,7 +271,7 @@ ParseSizeOfAlignOfTypeExpr(SourceLocation OpLoc, bool isSizeof,
|
||||||
return new SizeOfAlignOfTypeExpr(isSizeof, ArgTy, resultType, OpLoc, RPLoc);
|
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);
|
DefaultFunctionArrayConversion(V);
|
||||||
|
|
||||||
if (const ComplexType *CT = V->getType()->getAsComplexType())
|
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);
|
resultType = CheckSizeOfAlignOfOperand(Input->getType(), OpLoc, false);
|
||||||
break;
|
break;
|
||||||
case UnaryOperator::Real:
|
case UnaryOperator::Real:
|
||||||
resultType = CheckRealImagOperand(Input, OpLoc, false);
|
|
||||||
break;
|
|
||||||
case UnaryOperator::Imag:
|
case UnaryOperator::Imag:
|
||||||
resultType = CheckRealImagOperand(Input, OpLoc, true);
|
resultType = CheckRealImagOperand(Input, OpLoc);
|
||||||
break;
|
break;
|
||||||
case UnaryOperator::Extension:
|
case UnaryOperator::Extension:
|
||||||
resultType = Input->getType();
|
resultType = Input->getType();
|
||||||
|
|
Loading…
Reference in New Issue