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

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 03:57:38 PST 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 *));
----------------
DonatNagyE wrote:

Thanks!

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


More information about the cfe-commits mailing list