Skip to content

Commit 09e59ea

Browse files
committed
fixup! [RISCV][VLS] Support RISCV VLS calling convention
1 parent 1c8201d commit 09e59ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/CodeGen/Targets/RISCV.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty,
421421
}
422422

423423
// Generic vector
424-
// The number of element need to be at least 1.
424+
// The number of elements needs to be at least 1.
425425
ResType = llvm::ScalableVectorType::get(
426426
EltType,
427427
llvm::divideCeil(NumElts * llvm::RISCV::RVVBitsPerBlock, ArgABIVLen));

clang/lib/Sema/SemaDeclAttr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4994,7 +4994,7 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC,
49944994
}
49954995

49964996
if (Attrs.getKind() == ParsedAttr::AT_RISCVVLSCC) {
4997-
// riscv_vls_cc only accept 0 or 1 argument.
4997+
// riscv_vls_cc only accepts 0 or 1 argument.
49984998
if (!Attrs.checkAtLeastNumArgs(*this, 0) ||
49994999
!Attrs.checkAtMostNumArgs(*this, 1)) {
50005000
Attrs.setInvalid();

0 commit comments

Comments
 (0)