[clang] Diagnose potential size confusion with VLA params [contd.] (PR #181550)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 08:56:13 PST 2026


================
@@ -10566,6 +10637,10 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
       }
     }
 
+    if (getLangOpts().BoundsSafety) {
----------------
AaronBallman wrote:

Yeah, that seems like it should probably be made a helper function if we continue to limit this to VLA cases.

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


More information about the cfe-commits mailing list