diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2012-05-11 21:01:17 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-05-11 21:01:17 +0000 |
| commit | 8aeb1471ef62a4befba00721925a3717914f21d8 (patch) | |
| tree | 1bdc5ab379b47457418bde3e7c0689c3649d25fd /lib/CodeGen/TargetInfo.cpp | |
| parent | 6ea175b086638cc813d7cd577ece517b0dc48547 (diff) | |
| download | clang-8aeb1471ef62a4befba00721925a3717914f21d8.tar.gz clang-8aeb1471ef62a4befba00721925a3717914f21d8.tar.bz2 clang-8aeb1471ef62a4befba00721925a3717914f21d8.tar.xz | |
Fix handling of vector return types.
A vector should be returned via the hidden pointer argument except if its size
is equal to or smaller than 16-bytes and the target ABI is N32 or N64.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index d774ba0d0c..9016d8c93a 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -3360,7 +3360,7 @@ ABIArgInfo MipsABIInfo::classifyReturnType(QualType RetTy) const { if (RetTy->isVoidType() || Size == 0) return ABIArgInfo::getIgnore(); - if (isAggregateTypeForABI(RetTy)) { + if (isAggregateTypeForABI(RetTy) || RetTy->isVectorType()) { if (Size <= 128) { if (RetTy->isAnyComplexType()) return ABIArgInfo::getDirect(); |
