[cfe-commits] r65533 - /cfe/trunk/lib/CodeGen/CGCall.cpp
Anders Carlsson
andersca at mac.com
Thu Feb 26 09:31:16 PST 2009
Author: andersca
Date: Thu Feb 26 11:31:15 2009
New Revision: 65533
URL: http://llvm.org/viewvc/llvm-project?rev=65533&view=rev
Log:
Classify enum types correctly
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=65533&r1=65532&r2=65533&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Feb 26 11:31:15 2009
@@ -522,6 +522,9 @@
// 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()) {
More information about the cfe-commits
mailing list