Use CheckVectorOperands when % is applied to a vector type.

llvm-svn: 61763
This commit is contained in:
Daniel Dunbar 2009-01-05 22:42:10 +00:00
parent 52d4d8244b
commit 060d5e248e
1 changed files with 3 additions and 4 deletions

View File

@ -2361,9 +2361,7 @@ inline QualType Sema::CheckVectorOperands(SourceLocation Loc, Expr *&lex,
inline QualType Sema::CheckMultiplyDivideOperands(
Expr *&lex, Expr *&rex, SourceLocation Loc, bool isCompAssign)
{
QualType lhsType = lex->getType(), rhsType = rex->getType();
if (lhsType->isVectorType() || rhsType->isVectorType())
if (lex->getType()->isVectorType() || rex->getType()->isVectorType())
return CheckVectorOperands(Loc, lex, rex);
QualType compType = UsualArithmeticConversions(lex, rex, isCompAssign);
@ -2376,7 +2374,8 @@ inline QualType Sema::CheckMultiplyDivideOperands(
inline QualType Sema::CheckRemainderOperands(
Expr *&lex, Expr *&rex, SourceLocation Loc, bool isCompAssign)
{
QualType lhsType = lex->getType(), rhsType = rex->getType();
if (lex->getType()->isVectorType() || rex->getType()->isVectorType())
return CheckVectorOperands(Loc, lex, rex);
QualType compType = UsualArithmeticConversions(lex, rex, isCompAssign);