[asan] one more attempt to enable lsan by default (PR19521)

llvm-svn: 208545
This commit is contained in:
Kostya Serebryany 2014-05-12 12:49:48 +00:00
parent 070fd1c42a
commit 118d469660
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ static void ParseFlagsFromString(Flags *f, const char *str) {
void InitializeFlags(Flags *f, const char *env) {
CommonFlags *cf = common_flags();
SetCommonFlagsDefaults(cf);
cf->detect_leaks = false; // CAN_SANITIZE_LEAKS;
cf->detect_leaks = CAN_SANITIZE_LEAKS;
cf->external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH");
cf->malloc_context_size = kDefaultMallocContextSize;
cf->intercept_tls_get_addr = true;

View File

@ -3,7 +3,7 @@
//
// RUN: %clangxx_asan %s -o %t
// RUN: ASAN_OPTIONS=detect_leaks=1 not %run %t 2>&1 | FileCheck %s
// RUN: ASAN_OPTIONS="" %run %t
// RUN: ASAN_OPTIONS="" not %run %t 2>&1 | FileCheck %s
// RUN: ASAN_OPTIONS=detect_leaks=0 %run %t
#include <stdio.h>
int *t;