diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-09-26 03:56:53 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-09-26 03:56:53 +0000 |
| commit | 0374742326c51a1ad543bebcd77a6d3dc6bd05fd (patch) | |
| tree | 355088ef8dc0a00b211f62d5dac5241c9a44c14d /clang/lib | |
| parent | fae1d715924f0bd463986260b5a5d5f52986146a (diff) | |
| download | bcm5719-llvm-0374742326c51a1ad543bebcd77a6d3dc6bd05fd.tar.gz bcm5719-llvm-0374742326c51a1ad543bebcd77a6d3dc6bd05fd.zip | |
Use ABIArgInfo::getDirect() for all types that have a pointer representation.
llvm-svn: 82845
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/TargetABIInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetABIInfo.cpp b/clang/lib/CodeGen/TargetABIInfo.cpp index da30060ecde..010a4218213 100644 --- a/clang/lib/CodeGen/TargetABIInfo.cpp +++ b/clang/lib/CodeGen/TargetABIInfo.cpp @@ -836,7 +836,7 @@ ABIArgInfo X86_64ABIInfo::getCoerceResult(QualType Ty, if (CoerceTo == llvm::Type::getInt64Ty(CoerceTo->getContext())) { // Integer and pointer types will end up in a general purpose // register. - if (Ty->isIntegralType() || Ty->isPointerType()) + if (Ty->isIntegralType() || Ty->hasPointerRepresentation()) return (Ty->isPromotableIntegerType() ? ABIArgInfo::getExtend() : ABIArgInfo::getDirect()); } else if (CoerceTo == llvm::Type::getDoubleTy(CoerceTo->getContext())) { |

