fix a predicate I just broke

llvm-svn: 39578
This commit is contained in:
Chris Lattner 2007-06-03 07:27:29 +00:00
parent b16f455e8c
commit 64453e63ea
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ bool Type::typesAreCompatible(QualType lhs, QualType rhs) {
bool Type::isIntegerType() const {
if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
return BT->getKind() >= BuiltinType::Bool &&
BT->getKind() <= BuiltinType::ULongLong;
BT->getKind() <= BuiltinType::LongLong;
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
if (TT->getDecl()->getKind() == Decl::Enum)
return true;