diff options
author | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2019-12-05 03:23:31 +0000 |
---|---|---|
committer | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2019-12-05 03:28:19 +0000 |
commit | 1de214fa413d7c3c0fab832fa1f9857606d2ec78 (patch) | |
tree | b2232e3a03bdced0da8b1cdae62350a2594b7b0f /llvm/unittests/Analysis/VectorUtilsTest.cpp | |
parent | 9347655a275456c08222833b11ec699fafbc6de6 (diff) | |
download | bcm5719-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.cpp | 2 |
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}, |