Skip to content

Commit b3f3c0c

Browse files
committed
[clang][AArch64] Put soft-float ABI checks under isSoftFloat(). NFC
1 parent 956591b commit b3f3c0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/Targets/AArch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ bool AArch64SwiftABIInfo::isLegalVectorType(CharUnits VectorSize,
500500
bool AArch64ABIInfo::isHomogeneousAggregateBaseType(QualType Ty) const {
501501
// For the soft-float ABI variant, no types are considered to be homogeneous
502502
// aggregates.
503-
if (Kind == AArch64ABIKind::AAPCSSoft)
503+
if (isSoftFloat())
504504
return false;
505505

506506
// Homogeneous aggregates for AAPCS64 must have base types of a floating
@@ -555,8 +555,8 @@ RValue AArch64ABIInfo::EmitAAPCSVAArg(Address VAListAddr, QualType Ty,
555555
BaseTy = ArrTy->getElementType();
556556
NumRegs = ArrTy->getNumElements();
557557
}
558-
bool IsFPR = Kind != AArch64ABIKind::AAPCSSoft &&
559-
(BaseTy->isFloatingPointTy() || BaseTy->isVectorTy());
558+
bool IsFPR =
559+
!isSoftFloat() && (BaseTy->isFloatingPointTy() || BaseTy->isVectorTy());
560560

561561
// The AArch64 va_list type and handling is specified in the Procedure Call
562562
// Standard, section B.4:

0 commit comments

Comments
 (0)