diff --git a/clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt b/clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt index 5a6597d1b672..fe38eea3155a 100644 --- a/clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt +++ b/clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt @@ -23,4 +23,7 @@ target_link_libraries(ClangReplInterpreterExceptionTests PUBLIC ) add_dependencies(ClangReplInterpreterExceptionTests clang-resource-headers) -export_executable_symbols(ClangReplInterpreterExceptionTests) +# export_executable_symbols triggers Lsan report. +if (NOT LLVM_USE_SANITIZER MATCHES ".*Address.*") + export_executable_symbols(ClangReplInterpreterExceptionTests) +endif()