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

Aryan Kadole via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 19:01:42 PST 2026


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

> So probably we should just remove the guard?

I think for the time being we can guard it on whether bounds safety extension is enabled

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


More information about the cfe-commits mailing list