1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[APInt] Cast more calls to add/sub/mul overflow functions to void. I missed the unittests in r300758.

llvm-svn: 300773
This commit is contained in:
Craig Topper 2017-04-19 22:11:05 +00:00
parent fab0adbac6
commit a164e5abad

View File

@ -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);
}
}