summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/VectorUtilsTest.cpp
diff options
context:
space:
mode:
authorFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-05 03:23:31 +0000
committerFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-05 03:28:19 +0000
commit1de214fa413d7c3c0fab832fa1f9857606d2ec78 (patch)
treeb2232e3a03bdced0da8b1cdae62350a2594b7b0f /llvm/unittests/Analysis/VectorUtilsTest.cpp
parent9347655a275456c08222833b11ec699fafbc6de6 (diff)
downloadbcm5719-llvm-1de214fa413d7c3c0fab832fa1f9857606d2ec78.tar.gz
bcm5719-llvm-1de214fa413d7c3c0fab832fa1f9857606d2ec78.zip
[fix][unittests][llvm] Fix running unit tests without assertions. [NFCI]
Diffstat (limited to 'llvm/unittests/Analysis/VectorUtilsTest.cpp')
-rw-r--r--llvm/unittests/Analysis/VectorUtilsTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/VectorUtilsTest.cpp b/llvm/unittests/Analysis/VectorUtilsTest.cpp
index 50d8647d0a8..7a698f30822 100644
--- a/llvm/unittests/Analysis/VectorUtilsTest.cpp
+++ b/llvm/unittests/Analysis/VectorUtilsTest.cpp
@@ -432,6 +432,7 @@ TEST_F(VFShapeAPITest, Parameters_ValidOpenMPLinear) {
}
TEST_F(VFShapeAPITest, Parameters_Invalid) {
+#ifndef NDEBUG
// Wrong order is checked by an asseretion: make sure that the
// assertion is not removed.
EXPECT_DEATH(validParams({{1, VFParamKind::Vector}}),
@@ -439,6 +440,7 @@ TEST_F(VFShapeAPITest, Parameters_Invalid) {
EXPECT_DEATH(
validParams({{1, VFParamKind::Vector}, {0, VFParamKind::Vector}}),
"Broken parameter list.");
+#endif
// GlobalPredicate is not unique
EXPECT_FALSE(validParams({{0, VFParamKind::Vector},
OpenPOWER on IntegriCloud