================ @@ -717,6 +717,14 @@ bool Sema::checkMustTailAttr(const Stmt *St, const Attr &MTA) { return false; } + if (const FunctionDecl *CalleeDecl = CE->getDirectCallee()) { + if (CalleeDecl->hasAttr<NotTailCalledAttr>()) { + Diag(St->getBeginLoc(), diag::err_musttail_conflicts_with_not_tail_called) + << &MTA; + return false; + } + } ---------------- AaronBallman wrote:
```suggestion if (const FunctionDecl *CalleeDecl = CE->getDirectCallee(); CalleeDecl && CalleeDecl->hasAttr<NotTailCalledAttr>()) { Diag(St->getBeginLoc(), diag::err_musttail_conflicts_with_not_tail_called) << &MTA; return false; } ``` https://github.com/llvm/llvm-project/pull/134465 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits