[compiler-rt] [llvm] [ASan] Do not instrument catch block parameters on Windows (PR #159618)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 1 16:05:29 PDT 2025
thurstond wrote:
davidmrdavid@ Ah, try adding this to the top of your .ll file:
```
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
```
(or similar; I stole this snippet from `llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-windows.ll`.
opt is designed to be portable so it doesn't know or care that you're running on Windows, unless you tell it to act as if it is Windows.
https://github.com/llvm/llvm-project/pull/159618
More information about the llvm-commits
mailing list