[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 11 05:53:46 PDT 2025
================
@@ -3161,7 +3161,7 @@ def err_musttail_member_mismatch : Error<
def note_musttail_callee_defined_here : Note<"%0 declared here">;
def note_tail_call_required : Note<"tail call required by %0 attribute here">;
def err_musttail_mismatch : Error<
- "cannot perform a tail call to function%select{| %1}0 because its signature "
+ "cannot perform a tail call to function %select{| %1}0 because its signature "
----------------
AaronBallman wrote:
The original code here was correct and should not lead to any missing whitespace. You'd either get: `... to function because its signature...` or you'd get `to function 'foo' because`. With your changes, you'd get `...to function 'foo' because` (note the extra whitespace before `'foo'`).
https://github.com/llvm/llvm-project/pull/134465
More information about the cfe-commits
mailing list