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:
parent
fab0adbac6
commit
a164e5abad
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user