]> granicus.if.org Git - clang/commitdiff
Simplify comment.
authorSteve Naroff <snaroff@apple.com>
Wed, 16 Jan 2008 23:56:32 +0000 (23:56 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 16 Jan 2008 23:56:32 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46103 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Type.cpp

index e59569d2d64bff1fa2430406665e8525400ed139..bb031cb656671464294e7ce2bd1c80549ca3d67a 100644 (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);
 }