Skip to content

Commit 4a11222

Browse files
committed
[RISCV] Correct the SEW=64 MUL diagnostic to refer to V as an extension.
This makes it consistent with other builtins that require a specific extension.
1 parent 0d44c9f commit 4a11222

File tree

2 files changed

+65
-65
lines changed

2 files changed

+65
-65
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5219,7 +5219,7 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
52195219
if (Context.getTypeSize(Info.ElementType) == 64 && !TI.hasFeature("v"))
52205220
return Diag(TheCall->getBeginLoc(),
52215221
diag::err_riscv_builtin_requires_extension)
5222-
<< /* IsExtension */ false << TheCall->getSourceRange() << "v";
5222+
<< /* IsExtension */ true << TheCall->getSourceRange() << "v";
52235223

52245224
break;
52255225
}

0 commit comments

Comments
 (0)