From: Craig Topper Date: Wed, 19 Apr 2017 22:11:05 +0000 (+0000) Subject: [APInt] Cast more calls to add/sub/mul overflow functions to void. I missed the unitt... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=119d9368287534a1524343ce6b928e8495dc39c3;p=llvm [APInt] Cast more calls to add/sub/mul overflow functions to void. I missed the unittests in r300758. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300773 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/IR/ConstantRangeTest.cpp b/unittests/IR/ConstantRangeTest.cpp index 58fd04448e2..b22f82154f4 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); } }