[RISCV] Use RISCVV_BUILTIN for vector intrinsic checking.

There may be other BUILTINs for other extensions. Use RISCVV_BUILTIN for
vector builtin checking.

Differential Revision: https://reviews.llvm.org/D97825
This commit is contained in:
Hsiangkai Wang 2021-03-03 09:41:31 +08:00
parent 72d4a41ba6
commit f7e675b3da
1 changed files with 1 additions and 1 deletions

View File

@ -3395,7 +3395,7 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
switch (BuiltinID) {
default:
break;
#define BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID:
#define RISCVV_BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID:
#include "clang/Basic/BuiltinsRISCV.def"
if (!TI.hasFeature("experimental-v"))
return Diag(TheCall->getBeginLoc(), diag::err_riscvv_builtin_requires_v)