[PATCH] D12922: Add support for function attribute "notail"

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 16:14:46 PST 2015


aaron.ballman added inline comments.

================
Comment at: test/Sema/attr-notail.c:9
@@ +8,3 @@
+}
+
+int g0 __attribute__((not_tail_called)); // expected-warning {{'not_tail_called' attribute only applies to functions}}
----------------
ahatanak wrote:
> I didn't understand what kind of test case is required for not_tail_called on passed arguments. Could you give me an example? 
Sorry, I may have been unclear. I meant the attribute being passed arguments itself. e.g.,
```
int f() __attribute__((not_tail_called("this should diagnose")));
```


http://reviews.llvm.org/D12922





More information about the cfe-commits mailing list