[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 14 10:27:35 PDT 2025


================
@@ -3170,6 +3170,8 @@ def note_musttail_mismatch : Note<
     "|has type mismatch at %ordinal3 parameter"
     "%diff{ (expected $ but has $)|}1,2"
     "|has different return type%diff{ ($ expected but has $)|}1,2}0">;
+def note_musttail_disabled_by_not_tail_called : Note<
+  "'not_tail_called' attribute here prevents being called as a tail call">;
----------------
erichkeane wrote:

```suggestion
  "'not_tail_called' attribute prevents being called as a tail call">;
```

https://github.com/llvm/llvm-project/pull/134465


More information about the cfe-commits mailing list