Skip to content

Commit 1119b72

Browse files
authored
[RISCV][clang] Add address space argument to getNaturalAlignIndirect (#129493)
This is introduced in 39ec9de
1 parent 3d5348b commit 1119b72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/CodeGen/Targets/RISCV.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty, unsigned ABIVLen) const {
578578
} else {
579579
// Check registers needed <= 8.
580580
if ((EltType->getScalarSizeInBits() * NumElts / ABIVLen) > 8)
581-
return getNaturalAlignIndirect(Ty, /*ByVal=*/false);
581+
return getNaturalAlignIndirect(
582+
Ty, /*AddrSpace=*/getDataLayout().getAllocaAddrSpace(),
583+
/*ByVal=*/false);
582584

583585
// Generic vector
584586
// The number of elements needs to be at least 1.

0 commit comments

Comments
 (0)