[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 16:45:37 PST 2025


================
@@ -444,6 +444,19 @@ class LangOptionsBase {
     IncompleteOnly = 3,
   };
 
+  enum class ArrayBoundsStrictFlexArraysLevelKind {
----------------
fmayer wrote:

because we currently only store 3 bits for this, using -1 would be out of range of that and just truncate to 111 = 7

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


More information about the cfe-commits mailing list