mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Use EXPECT_EQ in the unittests instead of plain assert
This addresses post-review comments from Duncan P. N. Exon Smith to r261485. llvm-svn: 261514
This commit is contained in:
parent
3b54098f86
commit
c87da13e9f
@ -255,12 +255,13 @@ TEST_F(ScalarEvolutionsTest, SimplifiedPHI) {
|
|||||||
ScalarEvolution SE = buildSE(*F);
|
ScalarEvolution SE = buildSE(*F);
|
||||||
auto *S1 = SE.getSCEV(PN);
|
auto *S1 = SE.getSCEV(PN);
|
||||||
auto *S2 = SE.getSCEV(PN);
|
auto *S2 = SE.getSCEV(PN);
|
||||||
assert(isa<SCEVConstant>(S1) && "Expected a SCEV Constant");
|
auto *ZeroConst = SE.getConstant(Ty, 0);
|
||||||
|
|
||||||
// At some point, only the first call to getSCEV returned the simplified
|
// At some point, only the first call to getSCEV returned the simplified
|
||||||
// SCEVConstant and later calls just returned a SCEVUnknown referencing the
|
// SCEVConstant and later calls just returned a SCEVUnknown referencing the
|
||||||
// PHI node.
|
// PHI node.
|
||||||
assert(S1 == S2 && "Expected identical SCEV values");
|
EXPECT_EQ(S1, ZeroConst);
|
||||||
|
EXPECT_EQ(S1, S2);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user