[clang] [analyzer] Fix assertion failure in `CXXInstanceCall::getCXXThisVal` (PR #70837)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 4 02:36:59 PDT 2023


================
@@ -30,3 +30,24 @@ void test(int i) {
   clang_analyzer_dump(g4);
   // expected-warning at -1 {{&i [as 64 bit integer]}}
 }
+
+struct A {
+  int n;
+  void set(int x) {
+    n = x;
+  }
+};
+using ptr_size = decltype(sizeof(void *));
----------------
steakhal wrote:

Fixed. Now using `size_t`.

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


More information about the cfe-commits mailing list