now that direct and coerce are merged, getCoerceResult gets simpler.
llvm-svn: 109805
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index fc19637..870d6dd 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -1110,11 +1110,6 @@
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<llvm::PointerType>(CoerceTo) || CoerceTo->isIntegerTy(64)) &&
- Ty->hasPointerRepresentation())
- return ABIArgInfo::getExtend();
-
if (isa<llvm::IntegerType>(CoerceTo)) {
// Integer and pointer types will end up in a general purpose
// register.