[llvm] r267275 - Add #ifndef NDEBUG markers around EXPECT_DEATH after r267270
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 21:34:11 PDT 2016
Author: dexonsmith
Date: Fri Apr 22 23:34:11 2016
New Revision: 267275
URL: http://llvm.org/viewvc/llvm-project?rev=267275&view=rev
Log:
Add #ifndef NDEBUG markers around EXPECT_DEATH after r267270
http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/36076
Modified:
llvm/trunk/unittests/IR/MetadataTest.cpp
Modified: llvm/trunk/unittests/IR/MetadataTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=267275&r1=267274&r2=267275&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/MetadataTest.cpp (original)
+++ llvm/trunk/unittests/IR/MetadataTest.cpp Fri Apr 22 23:34:11 2016
@@ -2341,6 +2341,7 @@ TEST_F(DistinctMDOperandPlaceholderTest,
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,
}
}
#endif
+#endif
} // end namespace
More information about the llvm-commits
mailing list