diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2024-05-21 14:46:42 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2024-05-21 14:47:15 -0400 |
commit | ce1d28e645b53ba9518d295dad35a4578dd8e8dc (patch) | |
tree | e6bed1df49c1f805c1879ad75ceac645e0c8fa4f | |
parent | 7847b1ca00fb4649799125592f01cd38c5509b45 (diff) | |
download | llvm-ce1d28e645b53ba9518d295dad35a4578dd8e8dc.zip llvm-ce1d28e645b53ba9518d295dad35a4578dd8e8dc.tar.gz llvm-ce1d28e645b53ba9518d295dad35a4578dd8e8dc.tar.bz2 |
Fix diagnostic wording style; NFC
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | clang/test/Sema/builtins.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index c7dea1d..d597353 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -8853,7 +8853,7 @@ def err_atomic_exclusive_builtin_pointer_size : Error< "address argument to load or store exclusive builtin must be a pointer to" " 1,2,4 or 8 byte type (%0 invalid)">; def err_atomic_builtin_ext_int_size : Error< - "Atomic memory operand must have a power-of-two size">; + "atomic memory operand must have a power-of-two size">; def err_atomic_builtin_bit_int_prohibit : Error< "argument to atomic builtin of type '_BitInt' is not supported">; def err_atomic_op_needs_atomic : Error< diff --git a/clang/test/Sema/builtins.c b/clang/test/Sema/builtins.c index 3bee314..4f843ae 100644 --- a/clang/test/Sema/builtins.c +++ b/clang/test/Sema/builtins.c @@ -277,9 +277,9 @@ void test21(const int *ptr) { } void test_ei_i42i(_BitInt(42) *ptr, int value) { - __sync_fetch_and_add(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}} + __sync_fetch_and_add(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}} // expected-warning@+1 {{the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here}} - __sync_nand_and_fetch(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}} + __sync_nand_and_fetch(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}} __atomic_fetch_add(ptr, 1, 0); // expected-error {{argument to atomic builtin of type '_BitInt' is not supported}} } @@ -305,9 +305,9 @@ void test_ei_ii64(int *ptr, _BitInt(64) value) { } void test_ei_i42i42(_BitInt(42) *ptr, _BitInt(42) value) { - __sync_fetch_and_add(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}} + __sync_fetch_and_add(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}} // expected-warning@+1 {{the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here}} - __sync_nand_and_fetch(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}} + __sync_nand_and_fetch(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}} } void test_ei_i64i64(_BitInt(64) *ptr, _BitInt(64) value) { |