From d8583eb993319f633fe9a5c5b23bc4e6fe8c20db Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Wed, 16 Jan 2008 23:56:32 +0000 Subject: [PATCH] Simplify comment. llvm-svn: 46103 --- clang/AST/Type.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/AST/Type.cpp b/clang/AST/Type.cpp index e59569d2d64b..bb031cb65667 100644 --- a/clang/AST/Type.cpp +++ b/clang/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); }