From 2f2afc1aae898651e26987a5c71f3febb19bca98 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Sun, 21 Mar 2010 10:49:05 +0000 Subject: Update LLVM to r99115. --- unittests/Support/LeakDetectorTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittests/Support/LeakDetectorTest.cpp') diff --git a/unittests/Support/LeakDetectorTest.cpp b/unittests/Support/LeakDetectorTest.cpp index 85ef046..d198c7a 100644 --- a/unittests/Support/LeakDetectorTest.cpp +++ b/unittests/Support/LeakDetectorTest.cpp @@ -15,6 +15,7 @@ using namespace llvm; namespace { #ifdef GTEST_HAS_DEATH_TEST +#ifndef NDEBUG TEST(LeakDetector, Death1) { LeakDetector::addGarbageObject((void*) 1); LeakDetector::addGarbageObject((void*) 2); @@ -25,5 +26,6 @@ TEST(LeakDetector, Death1) { "Cache != o && \"Object already in set!\""); } #endif +#endif } -- cgit v1.1