summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-16 23:56:32 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-16 23:56:32 +0000
commitd8583eb993319f633fe9a5c5b23bc4e6fe8c20db (patch)
tree564337ccbf25279d09b0c4674350bcb22b1c2b13
parent8a0abea99921d6082f56489b6044de9f0cd01fbb (diff)
downloadllvm-d8583eb993319f633fe9a5c5b23bc4e6fe8c20db.tar.gz
Simplify comment.
llvm-svn: 46103
-rw-r--r--clang/AST/Type.cpp3
1 files changed, 1 insertions, 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<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);
}