[PATCH] D127306: [analyzer] Treat system globals as mutable if they are not const

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 08:59:03 PDT 2022


martong accepted this revision.
martong added a comment.
This revision is now accepted and ready to land.

Ok, LGTM



================
Comment at: clang/test/Analysis/globals-are-not-always-immutable.c:70
+  invalidate_globals();
+  clang_analyzer_eval(my_mutable_system_global == x); // expected-warning {{UNKNOWN}} It was previously TRUE.
+}
----------------
Just remove these when you commit.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127306/new/

https://reviews.llvm.org/D127306



More information about the cfe-commits mailing list