================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify -fsanitize=safe-stack
+
+void *test_bottom(void) {
+  return __builtin___get_unsafe_stack_bottom(); // expected-warning {{builtin 
'__builtin___get_unsafe_stack_bottom' is deprecated; use 
__safestack_get_unsafe_stack_bottom instead}}
----------------
AaronBallman wrote:

```suggestion
  return __builtin___get_unsafe_stack_bottom(); // expected-warning {{builtin 
'__builtin___get_unsafe_stack_bottom' is deprecated; use 
'__safestack_get_unsafe_stack_bottom' instead}}
```
Syntax constructs should be quoted in diagnostics, same should be changed for 
the others as well.

https://github.com/llvm/llvm-project/pull/198292
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to