[compiler-rt] [TySan] Fix false positives with derived classes (PR #126260)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 08:29:23 PDT 2025


================
@@ -0,0 +1,21 @@
+// RUN: %clangxx_tysan %s -o %t && %run %t 2>&1 | FileCheck --implicit-check-not ERROR %s
+
+#include <stdio.h>
+
+class Base {
+public:
+  void *first;
+  void *second;
+  void *third;
----------------
fhahn wrote:

Oh one thing I forgot was if we can add a test with a type violation that triggers with the new path? Or is that already covered with existing tests?

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


More information about the llvm-commits mailing list