The LLVM MemorySanitizer pass was added for -fsanitizer=memory builds when REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION is defined, but LLVMJIT.cpp includes LLVMReactor.hpp, which in turn includes Reactor.hpp which defines REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION to 0 if not previously defined, which will always enable it. Use #if instead of #ifdef to conditionally enable instrumentation based on REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION's value. Bug: b/155148722 Change-Id: I337832d942fcc576afac4d0c1d89c9fa42974cbe Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50288 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by:Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .vscode | Loading commit data... | |
| build | Loading commit data... | |
| build_overrides | Loading commit data... | |
| docs | Loading commit data... | |
| extensions | Loading commit data... | |
| include | Loading commit data... | |
| src | Loading commit data... | |
| tests | Loading commit data... | |
| third_party | Loading commit data... | |
| tools/cmake_generate_graphviz | Loading commit data... | |
| .clang-format | Loading commit data... | |
| .dir-locals.el | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| AUTHORS.txt | Loading commit data... | |
| Android.bp | Loading commit data... | |
| BUILD.gn | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| CMakeSettings.json | Loading commit data... | |
| CONTRIBUTING.txt | Loading commit data... | |
| CONTRIBUTORS.txt | Loading commit data... | |
| LICENSE.txt | Loading commit data... | |
| OWNERS | Loading commit data... | |
| README.md | Loading commit data... | |
| codereview.settings | Loading commit data... |