Author: Craig Topper Date: 2023-12-14T21:54:15-08:00 New Revision: 73beefc5d7608f019e5759c9cfd9105a591df374
URL: https://github.com/llvm/llvm-project/commit/73beefc5d7608f019e5759c9cfd9105a591df374 DIFF: https://github.com/llvm/llvm-project/commit/73beefc5d7608f019e5759c9cfd9105a591df374.diff LOG: [RISCV] Remove 'experimental-' from extension name in diagnostic message. I'm not sure how to test this because the intrinsic availability already seems to check this. Added: Modified: clang/lib/Sema/SemaChecking.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index bcddaa184fd596..d4a40b850ceaf2 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -5323,9 +5323,9 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI, QualType Op3Type = TheCall->getArg(2)->getType(); uint64_t ElemSize = Op1Type->isRVVType(32, false) ? 32 : 64; if (ElemSize == 64 && !TI.hasFeature("experimental-zvknhb")) - return - Diag(TheCall->getBeginLoc(), diag::err_riscv_type_requires_extension) - << Op1Type << "experimental-zvknhb"; + return Diag(TheCall->getBeginLoc(), + diag::err_riscv_type_requires_extension) + << Op1Type << "zvknhb"; return CheckInvalidVLENandLMUL(TI, TheCall, *this, Op1Type, ElemSize << 2) || CheckInvalidVLENandLMUL(TI, TheCall, *this, Op2Type, ElemSize << 2) || _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits