[cfe-commits] r46103 - /cfe/trunk/AST/Type.cpp

Steve Naroff snaroff at apple.com
Wed Jan 16 15:56:35 PST 2008


Author: snaroff
Date: Wed Jan 16 17:56:32 2008
New Revision: 46103

URL: http://llvm.org/viewvc/llvm-project?rev=46103&view=rev
Log:

Simplify comment.

Modified:
    cfe/trunk/AST/Type.cpp

Modified: cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Type.cpp?rev=46103&r1=46102&r2=46103&view=diff

==============================================================================
--- cfe/trunk/AST/Type.cpp (original)
+++ cfe/trunk/AST/Type.cpp Wed Jan 16 17:56:32 2008
@@ -446,8 +446,7 @@
   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);
 }





More information about the cfe-commits mailing list