[clang] [Clang] Diagnose forming references to nullptr (PR #143667)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 07:26:10 PDT 2025
================
@@ -4503,7 +4510,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
} else {
const Expr *Base = LVal.Base.dyn_cast<const Expr*>();
- if (!Frame) {
+ if (AK != clang::AK_ReferenceInitialization && !Frame) {
----------------
erichkeane wrote:
Can we move hte new check here to 4510?
https://github.com/llvm/llvm-project/pull/143667
More information about the cfe-commits
mailing list