trivial simplification

llvm-svn: 39563
This commit is contained in:
Chris Lattner 2007-06-02 22:47:37 +00:00
parent ea3c20b9eb
commit 226d419e21
1 changed files with 1 additions and 2 deletions

View File

@ -248,8 +248,7 @@ bool Type::isRealType() const {
return BT->getKind() >= BuiltinType::Bool &&
BT->getKind() <= BuiltinType::LongDouble;
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
if (TT->getDecl()->getKind() == Decl::Enum)
return true;
return TT->getDecl()->getKind() == Decl::Enum;
return false;
}