[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 11:58:13 PST 2025


================
@@ -66,8 +66,10 @@ void test_simple_constructors() {
   int *ptr1 = pair1.first;
 
 #ifdef O0
-  assert(dfsan_read_label(&i1, sizeof(i1)) == 10);
-  assert(dfsan_read_label(&ptr1, sizeof(ptr1)) == 10);
+  assert(dfsan_read_label(&i1, sizeof(i1)) == 8 ||
----------------
anoopkg6 wrote:

Changes to tests were not SystemZ specific. Actually dfsan_get_label points exactly to individual element in the struct during struct copy instead of union of all element's label in struct at -O0 on SystemZ. 
Modified tests to accept union of labels in struct and individual label both only for SystemZ.


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


More information about the llvm-commits mailing list