From: Chris Lattner Date: Thu, 29 Jul 2010 21:29:53 +0000 (+0000) Subject: now that direct and coerce are merged, getCoerceResult gets simpler. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cce1958b127f1722a18825b2cd793ce21246911;p=clang now that direct and coerce are merged, getCoerceResult gets simpler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109805 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index fc19637e2a..870d6dd68e 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -1110,11 +1110,6 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, ABIArgInfo X86_64ABIInfo::getCoerceResult(QualType Ty, const llvm::Type *CoerceTo) const { - // If this is a pointer passed as a pointer, just pass it directly. - if ((isa(CoerceTo) || CoerceTo->isIntegerTy(64)) && - Ty->hasPointerRepresentation()) - return ABIArgInfo::getExtend(); - if (isa(CoerceTo)) { // Integer and pointer types will end up in a general purpose // register.