[compiler-rt] [ASan][Windows] Fix false positive for zero sized rtl allocations (PR #181015)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 14 13:28:56 PST 2026
================
@@ -0,0 +1,107 @@
+// RUN: %clang_cl_asan %s %Fe%t
+// RUN: %env_asan_opts=windows_hook_rtl_allocators=true %run %t 2>&1 | FileCheck %s
+// RUN: %clang_cl_asan %s %Fe%t /DFAIL_CHECK
----------------
mstorsjo wrote:
This change broke running the tests in mingw mode: https://github.com/mstorsjo/llvm-mingw/actions/runs/22008549964/job/63614341607
Note how the existing options are wrapped in macros, like `%Fe`, which expands to the right option (either `/Fe` or `-o `) depending on the compiler driver. For `/DFAIL_CHECK`, we can switch to `-DFAIL_CHECK`, which works both with the `cl.exe`/`clang-cl` interface, and plain `clang` as used in mingw mode. I'll push such a commit to unbreak my tests.
https://github.com/llvm/llvm-project/pull/181015
More information about the llvm-commits
mailing list