[clang] [analyzer] Generalize field initializer resolution in RegionStore (PR #189361)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 2 03:52:18 PDT 2026


================
@@ -10,8 +10,7 @@ struct S {
 S const sarr[2] = {};
 void definit() {
   int i = 1;
-  // FIXME: Should recognize that it is 3.
-  clang_analyzer_eval(sarr[i].a); // expected-warning{{UNKNOWN}}
+  clang_analyzer_eval(sarr[i].a); // expected-warning{{TRUE}}
----------------
steakhal wrote:

Can we dump that this is `3 S32b`?

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


More information about the cfe-commits mailing list