diff options
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index e560bfd82f1..7a98b0c1c6b 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -525,9 +525,7 @@ void X86_64ABIInfo::classify(QualType Ty, } else if (const EnumType *ET = Ty->getAsEnumType()) { // Classify the underlying integer type. classify(ET->getDecl()->getIntegerType(), Context, OffsetBase, Lo, Hi); - } else if (Ty->isPointerType() || Ty->isReferenceType() || - Ty->isBlockPointerType() || Ty->isObjCQualifiedIdType() || - Ty->isObjCQualifiedInterfaceType()) { + } else if (Ty->hasPointerRepresentation()) { Current = Integer; } else if (const VectorType *VT = Ty->getAsVectorType()) { uint64_t Size = Context.getTypeSize(VT); |