| Issue |
130224
|
| Summary |
[[clang::musttail]] should be allowed on calls that aren't a sub-_expression_ of a return
|
| Labels |
enhancement
|
| Assignees |
|
| Reporter |
ahatanak
|
clang should accept `[[clang::musttail]]` on the call without return as it's equivalent to the call with return.
```
void f(void);
void g(void) {
[[clang::musttail]]
#ifdef NORETURN
f(); // error: 'musttail' attribute only applies to return statements
#else
return f(); // OK
#endif
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs