================
@@ -14296,6 +14299,10 @@ void Sema::DiagnoseAlwaysNonNullPointer(Expr *E,
if (!IsFunction)
return;
+ // The fix-it notes below only apply to a bare function name, not a
reference.
+ if (IsFunctionReference)
+ return;
----------------
cor3ntin wrote:
Please merge these 2 `if`s. Thanks
https://github.com/llvm/llvm-project/pull/204944
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits