Add #ifndef NDEBUG markers around EXPECT_DEATH after r267270
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 04:34:11 +0000 (04:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 04:34:11 +0000 (04:34 +0000)
http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/36076

llvm-svn: 267275

llvm/unittests/IR/MetadataTest.cpp

index 424b7be..71c5dd4 100644 (file)
@@ -2341,6 +2341,7 @@ TEST_F(DistinctMDOperandPlaceholderTest, replaceUseWithNoUser) {
   DistinctMDOperandPlaceholder(7).replaceUseWith(MDTuple::get(Context, None));
 }
 
+#ifndef NDEBUG
 #ifdef GTEST_HAS_DEATH_TEST
 TEST_F(DistinctMDOperandPlaceholderTest, MetadataAsValue) {
   // This shouldn't crash.
@@ -2383,5 +2384,6 @@ TEST_F(DistinctMDOperandPlaceholderTest, TrackingMDRefAndDistinctMDNode) {
   }
 }
 #endif
+#endif
 
 } // end namespace