Skip to content

Commit 47625fe

Browse files
committed
[clang-repl] Disable LSan in InterpreterExceptionTest.
Disabling LSan for this test until we can track down the leak described in #67586.
1 parent 9243b1b commit 47625fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
#include "gmock/gmock.h"
3030
#include "gtest/gtest.h"
3131

32+
// Disable LSan for this test.
33+
// FIXME: Re-enable this once we track down the leak described in
34+
// https://llvm.org/github.com/llvm/llvm-project/issues/67586.
35+
#if LLVM_ADDRESS_SANITIZER_BUILD || LLVM_HWADDRESS_SANITIZER_BUILD
36+
#include <sanitizer/lsan_interface.h>
37+
LLVM_ATTRIBUTE_USED int __lsan_is_turned_off() { return 1; }
38+
#endif
39+
3240
using namespace clang;
3341

3442
namespace {

0 commit comments

Comments
 (0)