diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index ccde2f3164a1..779bc23a6fcd 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -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)