[compiler-rt] [llvm] [ASan] Correctly handle vectorized pointer sub/cmp for `invalid-pointer-pair` (PR #213546)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 15 21:54:19 PDT 2026


================
@@ -0,0 +1,29 @@
+// RUN: %clangxx_asan -O2 %s -o %t -mllvm -asan-detect-invalid-pointer-pair
+// RUN: %env_asan_opts=detect_invalid_pointer_pairs=1:halt_on_error=0 %run %t 2>&1 | FileCheck %s
----------------
flovent wrote:

https://github.com/llvm/llvm-project/pull/216532 can prove this testcase will fail before this patch in unix env, but it seems the code in `span_lengths` won't be vectorized in windows platform, so windows CI failed in that PR.

So asan in windows should already handled this O2 testcase well, should i marked windows as unsupported or leave it the way they are now?

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


More information about the llvm-commits mailing list