From: Steve Naroff Date: Wed, 16 Jan 2008 23:56:32 +0000 (+0000) Subject: Simplify comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=494783a1f900366c86895a15870a04119e3e66a6;p=clang Simplify comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46103 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/Type.cpp b/AST/Type.cpp index e59569d2d6..bb031cb656 100644 --- a/AST/Type.cpp +++ b/AST/Type.cpp @@ -446,8 +446,7 @@ bool Type::isArithmeticType() const { if (const TagType *TT = dyn_cast(CanonicalType)) if (const EnumDecl *ED = dyn_cast(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(CanonicalType) || isa(CanonicalType); }