Skip to content

Commit 0d44c9f

Browse files
committed
[RISCV] Shorten diagnostic a bit.
The "to be enabled" seemed unnecessary.
1 parent bf1c89c commit 0d44c9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12002,7 +12002,7 @@ def warn_tcb_enforcement_violation : Warning<
1200212002

1200312003
// RISC-V builtin required extension warning
1200412004
def err_riscv_builtin_requires_extension : Error<
12005-
"builtin requires%select{| at least one of the following extensions to be enabled}0: %1">;
12005+
"builtin requires%select{| at least one of the following extensions}0: %1">;
1200612006
def err_riscv_builtin_invalid_lmul : Error<
1200712007
"LMUL argument must be in the range [0,3] or [5,7]">;
1200812008
def err_riscv_type_requires_extension : Error<

clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/rvv-error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// CHECK-RV64V-NEXT: ret i32 [[CONV]]
1212
//
1313

14-
// CHECK-RV64-ERR: error: builtin requires at least one of the following extensions to be enabled: 'Zve32x'
14+
// CHECK-RV64-ERR: error: builtin requires at least one of the following extensions: 'Zve32x'
1515

1616
int test() {
1717
return __builtin_rvv_vsetvli(1, 0, 0);

0 commit comments

Comments
 (0)