Skip to content

Commit 377b19c

Browse files
committed
Rephrase warning
1 parent 5966541 commit 377b19c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/include/clang/Basic/DiagnosticFrontendKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def err_function_always_inline_attribute_mismatch : Error<
290290
"always_inline function %1 and its caller %0 have mismatching %2 attributes">;
291291
def warn_function_always_inline_attribute_mismatch : Warning<
292292
"always_inline function %1 and its caller %0 have mismatching %2 attributes, "
293-
"inlining may result in different runtime behaviour">, InGroup<AArch64SMEAttributes>;
293+
"inlining may change runtime behaviour">, InGroup<AArch64SMEAttributes>;
294294
def err_function_always_inline_new_za : Error<
295295
"always_inline function %0 has new za state">;
296296

clang/test/CodeGen/aarch64-sme-inline-streaming-attrs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void caller(void) {
2020

2121
#ifdef TEST_COMPATIBLE
2222
void caller_compatible(void) __arm_streaming_compatible {
23-
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_compatible' have mismatching streaming attributes, inlining may result in different runtime behaviour}}
23+
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_compatible' have mismatching streaming attributes, inlining may change runtime behaviour}}
2424
inlined_fn_streaming_compatible();
2525
inlined_fn_streaming(); // expected-error {{always_inline function 'inlined_fn_streaming' and its caller 'caller_compatible' have mismatching streaming attributes}}
2626
inlined_fn_local(); // expected-error {{always_inline function 'inlined_fn_local' and its caller 'caller_compatible' have mismatching streaming attributes}}
@@ -29,7 +29,7 @@ void caller_compatible(void) __arm_streaming_compatible {
2929

3030
#ifdef TEST_STREAMING
3131
void caller_streaming(void) __arm_streaming {
32-
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_streaming' have mismatching streaming attributes, inlining may result in different runtime behaviour}}
32+
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_streaming' have mismatching streaming attributes, inlining may change runtime behaviour}}
3333
inlined_fn_streaming_compatible();
3434
inlined_fn_streaming();
3535
inlined_fn_local();
@@ -39,7 +39,7 @@ void caller_streaming(void) __arm_streaming {
3939
#ifdef TEST_LOCALLY
4040
__arm_locally_streaming
4141
void caller_local(void) {
42-
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_local' have mismatching streaming attributes, inlining may result in different runtime behaviour}}
42+
inlined_fn(); // expected-warning {{always_inline function 'inlined_fn' and its caller 'caller_local' have mismatching streaming attributes, inlining may change runtime behaviour}}
4343
inlined_fn_streaming_compatible();
4444
inlined_fn_streaming();
4545
inlined_fn_local();

0 commit comments

Comments
 (0)