Skip to content

Commit

Permalink
[test][clang-repl][Orc] Lsan report workaround
Browse files Browse the repository at this point in the history
Not sure if this is real leak of lsan and clang-repl incompatibility.
ca8d253 causes leak report in
ClangReplInterpreterExceptionTests.
  • Loading branch information
vitalybuka committed Sep 13, 2023
1 parent ba6d7a0 commit b4b4d8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit b4b4d8b

Please sign in to comment.