summaryrefslogtreecommitdiff
path: root/unittests/IR/ConstantRangeTest.cpp
diff options
context:
space:
mode:
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);
}
}