[clang] [clang][RISCV] Fix typo of vector crypto in SemaRISCV.cpp. NFC (PR #106485)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 21:46:12 PDT 2024
================
@@ -733,7 +733,7 @@ bool SemaRISCV::CheckBuiltinFunctionCall(const TargetInfo &TI,
if (ElemSize == 64 && !TI.hasFeature("zvknhb"))
return Diag(TheCall->getBeginLoc(),
diag::err_riscv_builtin_requires_extension)
- << /* IsExtension */ true << TheCall->getSourceRange() << "zvknb";
+ << /* IsExtension */ true << TheCall->getSourceRange() << "zvknhb";
----------------
4vtomat wrote:
I think we can't, since the `RequiredFeatures` in `riscv_vector.td` already blocks the intrinsic generation, I guess we don't even need this check, do we?
https://github.com/llvm/llvm-project/pull/106485
More information about the cfe-commits
mailing list