Skip to content

Commit 02c9a94

Browse files
committed
[X86] Return illegal vectors in memory
When vector size doesn't fit in native machine vector size, we should return vector via a hidden reference.
1 parent 4fe7ea5 commit 02c9a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/Targets/X86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ ABIArgInfo X86_64ABIInfo::getIndirectReturnResult(QualType Ty) const {
21912191
return getNaturalAlignIndirect(Ty);
21922192
}
21932193

2194-
static bool IsIllegalVector(QualType Ty,
2194+
static bool IsIllegalVector(QualType Ty,
21952195
uint64_t Size,
21962196
X86AVXABILevel AVXLevel) {
21972197
if (const VectorType *VecTy = Ty->getAs<VectorType>()) {

0 commit comments

Comments
 (0)