Skip to content

Commit a1171c8

Browse files
committed
[AArch64] Invert check for soft-float ABI (NFC)
If any other AArch64ABIKinds reach here in future they will use floating-point registers, which is a better default.
1 parent e48f525 commit a1171c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/Targets/AArch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ Address AArch64ABIInfo::EmitAAPCSVAArg(Address VAListAddr, QualType Ty,
542542
BaseTy = ArrTy->getElementType();
543543
NumRegs = ArrTy->getNumElements();
544544
}
545-
bool IsFPR = Kind == AArch64ABIKind::AAPCS &&
545+
bool IsFPR = Kind != AArch64ABIKind::AAPCSSoft &&
546546
(BaseTy->isFloatingPointTy() || BaseTy->isVectorTy());
547547

548548
// The AArch64 va_list type and handling is specified in the Procedure Call

0 commit comments

Comments
 (0)