From a1842d32a1964712e42078e9b389dce9258c6a8c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 14 May 2010 03:40:53 +0000 Subject: C++/Darwin/x86: Teach IRgen it can pass reference types in registers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103761 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/TargetInfo.cpp') diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index bcd332ac95..09baf2e833 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -188,7 +188,7 @@ static const Type *isSingleElementStruct(QualType T, ASTContext &Context) { } static bool is32Or64BitBasicType(QualType Ty, ASTContext &Context) { - if (!Ty->getAs() && !Ty->isAnyPointerType() && + if (!Ty->getAs() && !Ty->hasPointerRepresentation() && !Ty->isAnyComplexType() && !Ty->isEnumeralType() && !Ty->isBlockPointerType()) return false; @@ -388,7 +388,7 @@ bool X86_32ABIInfo::shouldReturnTypeInRegister(QualType Ty, } // If this is a builtin, pointer, enum, or complex type, it is ok. - if (Ty->getAs() || Ty->isAnyPointerType() || + if (Ty->getAs() || Ty->hasPointerRepresentation() || Ty->isAnyComplexType() || Ty->isEnumeralType() || Ty->isBlockPointerType()) return true; -- cgit v1.2.3-70-g09d2