summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/unittests/IR/ConstantRangeTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp
index 58fd04448e2..b22f82154f4 100644
--- a/llvm/unittests/IR/ConstantRangeTest.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud