зеркало из https://github.com/microsoft/clang-1.git
Ignore return type if its size is zero.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f75823f3d4
Коммит
a8536c086f
|
@ -3222,11 +3222,12 @@ MipsABIInfo::returnAggregateInRegs(QualType RetTy, uint64_t Size) const {
|
|||
}
|
||||
|
||||
ABIArgInfo MipsABIInfo::classifyReturnType(QualType RetTy) const {
|
||||
if (RetTy->isVoidType())
|
||||
uint64_t Size = getContext().getTypeSize(RetTy);
|
||||
|
||||
if (RetTy->isVoidType() || Size == 0)
|
||||
return ABIArgInfo::getIgnore();
|
||||
|
||||
if (isAggregateTypeForABI(RetTy)) {
|
||||
uint64_t Size = getContext().getTypeSize(RetTy);
|
||||
if (Size <= 128) {
|
||||
if (RetTy->isAnyComplexType())
|
||||
return ABIArgInfo::getDirect();
|
||||
|
|
Загрузка…
Ссылка в новой задаче