Skip to content

Commit d8583eb

Browse files
author
Steve Naroff
committed
Simplify comment. llvm-svn: 46103
1 parent 8a0abea commit d8583eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/AST/Type.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ bool Type::isArithmeticType() const {
446446
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
447447
if (const EnumDecl *ED = dyn_cast<EnumDecl>(TT->getDecl()))
448448
// GCC allows forward declaration of enum types (forbid by C99 6.7.2.3p2).
449-
// If a body isn't seen by the time we get here, we exclude it from
450-
// being allowed in arithmetic expressions.
449+
// If a body isn't seen by the time we get here, return false.
451450
return ED->isDefinition();
452451
return isa<ComplexType>(CanonicalType) || isa<VectorType>(CanonicalType);
453452
}

0 commit comments

Comments
 (0)