summaryrefslogtreecommitdiff
path: root/unittests/IR/ConstantRangeTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-20 21:19:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-20 21:19:10 +0000
commitd99dafe2e4a385dd2a6c76da6d8258deb100657b (patch)
treeba60bf957558bd114f25dbff3d4996b5d7a61c82 /unittests/IR/ConstantRangeTest.cpp
parent71d5a2540a98c81f5bcaeb48805e0e2881f530ef (diff)
Notes
Diffstat (limited to 'unittests/IR/ConstantRangeTest.cpp')
-rw-r--r--unittests/IR/ConstantRangeTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/IR/ConstantRangeTest.cpp b/unittests/IR/ConstantRangeTest.cpp
index 58fd04448e2e..b22f82154f40 100644
--- a/unittests/IR/ConstantRangeTest.cpp
+++ b/unittests/IR/ConstantRangeTest.cpp
@@ -670,14 +670,14 @@ TEST(ConstantRange, MakeGuaranteedNoWrapRegion) {
for (APInt I = NUWRegion.getLower(), E = NUWRegion.getUpper(); I != E;
++I) {
bool Overflow = false;
- I.uadd_ov(C, Overflow);
+ (void)I.uadd_ov(C, Overflow);
EXPECT_FALSE(Overflow);
}
for (APInt I = NSWRegion.getLower(), E = NSWRegion.getUpper(); I != E;
++I) {
bool Overflow = false;
- I.sadd_ov(C, Overflow);
+ (void)I.sadd_ov(C, Overflow);
EXPECT_FALSE(Overflow);
}
@@ -685,10 +685,10 @@ TEST(ConstantRange, MakeGuaranteedNoWrapRegion) {
++I) {
bool Overflow = false;
- I.sadd_ov(C, Overflow);
+ (void)I.sadd_ov(C, Overflow);
EXPECT_FALSE(Overflow);
- I.uadd_ov(C, Overflow);
+ (void)I.uadd_ov(C, Overflow);
EXPECT_FALSE(Overflow);
}
}