[compiler-rt] [llvm] [ASan] Do not instrument catch block parameters on Windows (PR #159618)

David Justo via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 15:39:38 PDT 2025


davidmrdavid wrote:

@thurstond - thanks for the tip, but I've been fully deleting my build directory between builds (`build.runtimes` in this case), thus forcefully re-generating `opt.exe`, and the output remains the same.

If it helps, this is how I'm building llvm:

```cmd
:: Create and enter build directory (`build.runtimes`)
mkdir %LLVM_ROOT%\build.runtimes
cd %LLVM_ROOT%\build.runtimes

:: Configure the build
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS=clang -DLLVM_ENABLE_RUNTIMES=compiler-rt ..\llvm\

:: Build LLVM
ninja
```

Something weird is that, when running my local clang, I do see my own ad-hoc debug messages in `AddressSanitizer.cpp` being emitted (printed via `llvm::errs() << "DEBUG: foo\n";` at various points in the file) but when running `opt` I don't see those emitted at all. Not sure if that's expected.

I think I'm going to have to dive deeper, and try to attach a debugger on `opt` to see what's running. I may also try to attend office hours and/or check in the discord for advice. But yeah if anyone sees that I'm doing anything wrong here, please do let me know. As-is, I'm unable to get the `.ll` unit test working right :-) .

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


More information about the llvm-commits mailing list