Simplify comment.

llvm-svn: 46103
This commit is contained in:
Steve Naroff 2008-01-16 23:56:32 +00:00
parent 8a0abea999
commit d8583eb993
1 changed files with 1 additions and 2 deletions

View File

@ -446,8 +446,7 @@ bool Type::isArithmeticType() const {
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
if (const EnumDecl *ED = dyn_cast<EnumDecl>(TT->getDecl()))
// GCC allows forward declaration of enum types (forbid by C99 6.7.2.3p2).
// If a body isn't seen by the time we get here, we exclude it from
// being allowed in arithmetic expressions.
// If a body isn't seen by the time we get here, return false.
return ED->isDefinition();
return isa<ComplexType>(CanonicalType) || isa<VectorType>(CanonicalType);
}