Classify enum types correctly

llvm-svn: 65533
This commit is contained in:
Anders Carlsson 2009-02-26 17:31:15 +00:00
parent b162f170da
commit 600183db9e
1 changed files with 3 additions and 0 deletions

View File

@ -522,6 +522,9 @@ void X86_64ABIInfo::classify(QualType Ty,
// FIXME: _Decimal32 and _Decimal64 are SSE.
// FIXME: _float128 and _Decimal128 are (SSE, SSEUp).
// FIXME: __int128 is (Integer, Integer).
} else if (const EnumType *ET = Ty->getAsEnumType()) {
// Classify the underlying integer type.
classify(ET->getDecl()->getIntegerType(), Context, OffsetBase, Lo, Hi);
} else if (Ty->isPointerLikeType() || Ty->isBlockPointerType() ||
Ty->isObjCQualifiedIdType() ||
Ty->isObjCQualifiedInterfaceType()) {