summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-06-04 23:03:52 +0000
committerCraig Topper <craig.topper@gmail.com>2017-06-04 23:03:52 +0000
commit2df639eaa19529f8f718ab04bc985d7de0e233fc (patch)
treef78d2e6fe6602727082282deb480e3ad03b22d3f /llvm/unittests/IR
parentda8037f299b9819aa54495c43d6fc80372dade9c (diff)
downloadbcm5719-llvm-2df639eaa19529f8f718ab04bc985d7de0e233fc.tar.gz
bcm5719-llvm-2df639eaa19529f8f718ab04bc985d7de0e233fc.zip
[ConstantRange] Add missing result check to the ConstantRange::truncate test.
llvm-svn: 304693
Diffstat (limited to 'llvm/unittests/IR')
-rw-r--r--llvm/unittests/IR/ConstantRangeTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp
index c6c9bf6d6b5..a03b7680d29 100644
--- a/llvm/unittests/IR/ConstantRangeTest.cpp
+++ b/llvm/unittests/IR/ConstantRangeTest.cpp
@@ -187,6 +187,7 @@ TEST_F(ConstantRangeTest, Trunc) {
EXPECT_EQ(TOne, ConstantRange(One.getLower().trunc(10),
One.getUpper().trunc(10)));
EXPECT_TRUE(TSome.isFullSet());
+ EXPECT_TRUE(TWrap.isFullSet());
}
TEST_F(ConstantRangeTest, ZExt) {
OpenPOWER on IntegriCloud