summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 04:34:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 04:34:11 +0000
commit004eb55feb1f0a44afe462b48061c9b1ab78eab0 (patch)
tree41b080ef4e6fc3fa1bb50ab50050ccdae1bdcd6a
parentc814e0c1fd51de39c46a8b6168a299dacc410f17 (diff)
downloadbcm5719-llvm-004eb55feb1f0a44afe462b48061c9b1ab78eab0.tar.gz
bcm5719-llvm-004eb55feb1f0a44afe462b48061c9b1ab78eab0.zip
Add #ifndef NDEBUG markers around EXPECT_DEATH after r267270
http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/36076 llvm-svn: 267275
-rw-r--r--llvm/unittests/IR/MetadataTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index 424b7bec8b9..71c5dd4d27d 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -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
OpenPOWER on IntegriCloud