Skip to content

Commit

Permalink
[RISCV] Shorten diagnostic a bit.
Browse files Browse the repository at this point in the history
The "to be enabled" seemed unnecessary.
  • Loading branch information
topperc committed Dec 11, 2023
1 parent bf1c89c commit 0d44c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -12002,7 +12002,7 @@ def warn_tcb_enforcement_violation : Warning<

// RISC-V builtin required extension warning
def err_riscv_builtin_requires_extension : Error<
"builtin requires%select{| at least one of the following extensions to be enabled}0: %1">;
"builtin requires%select{| at least one of the following extensions}0: %1">;
def err_riscv_builtin_invalid_lmul : Error<
"LMUL argument must be in the range [0,3] or [5,7]">;
def err_riscv_type_requires_extension : Error<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// CHECK-RV64V-NEXT: ret i32 [[CONV]]
//

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

int test() {
return __builtin_rvv_vsetvli(1, 0, 0);
Expand Down

0 comments on commit 0d44c9f

Please sign in to comment.