Skip to content

Commit 73beefc

Browse files
committed
[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.
1 parent 47b0052 commit 73beefc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5323,9 +5323,9 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
53235323
QualType Op3Type = TheCall->getArg(2)->getType();
53245324
uint64_t ElemSize = Op1Type->isRVVType(32, false) ? 32 : 64;
53255325
if (ElemSize == 64 && !TI.hasFeature("experimental-zvknhb"))
5326-
return
5327-
Diag(TheCall->getBeginLoc(), diag::err_riscv_type_requires_extension)
5328-
<< Op1Type << "experimental-zvknhb";
5326+
return Diag(TheCall->getBeginLoc(),
5327+
diag::err_riscv_type_requires_extension)
5328+
<< Op1Type << "zvknhb";
53295329

53305330
return CheckInvalidVLENandLMUL(TI, TheCall, *this, Op1Type, ElemSize << 2) ||
53315331
CheckInvalidVLENandLMUL(TI, TheCall, *this, Op2Type, ElemSize << 2) ||

0 commit comments

Comments
 (0)