mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
Fix Casts
Use const_cast<> to avoid cast-away-const errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ba5769676
commit
c8be88ab56
@ -46,7 +46,8 @@ TEST(WaymarkTest, TwoBit) {
|
||||
Use::initTags(many, many + 8212);
|
||||
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