We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c34a9 commit caec5f1Copy full SHA for caec5f1
absl/debugging/leak_check.cc
@@ -28,7 +28,7 @@
28
#include <sanitizer/lsan_interface.h>
29
30
#if ABSL_HAVE_ATTRIBUTE_WEAK
31
-extern "C" ABSL_ATTRIBUTE_WEAK int __lsan_is_turned_off();
+extern "C" ABSL_ATTRIBUTE_WEAK int __lsan_is_turned_off() { return 0; }
32
#endif
33
34
namespace absl {
@@ -37,7 +37,7 @@ bool HaveLeakSanitizer() { return true; }
37
38
39
bool LeakCheckerIsActive() {
40
- return !(&__lsan_is_turned_off && __lsan_is_turned_off());
+ return __lsan_is_turned_off() == 0;
41
}
42
#else
43
bool LeakCheckerIsActive() { return true; }
0 commit comments