mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
Fix Casts
Use const_cast<> to avoid cast-away-const errors. llvm-svn: 172464
This commit is contained in:
parent
841ad0f303
commit
6d59c943e8
@ -46,7 +46,8 @@ TEST(WaymarkTest, TwoBit) {
|
|||||||
Use::initTags(many, many + 8212);
|
Use::initTags(many, many + 8212);
|
||||||
for (const Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
|
for (const Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
|
||||||
{
|
{
|
||||||
EXPECT_EQ((User*)(Ue + 1), U->getUser());
|
EXPECT_EQ(reinterpret_cast<User*>(const_cast<Use *>(Ue + 1)),
|
||||||
|
U->getUser());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user