[clang] [Clang] Diagnose forming references to nullptr (PR #143667)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 13 12:07:23 PDT 2025


================
@@ -1540,6 +1540,7 @@ static bool isModification(AccessKinds AK) {
   case AK_DynamicCast:
   case AK_TypeId:
   case AK_IsWithinLifetime:
+  case AK_ReferenceInitialization:
----------------
AaronBallman wrote:

It might be worth leaving a comment there for the next person to come along and wonder about that.

https://github.com/llvm/llvm-project/pull/143667


More information about the cfe-commits mailing list