llvm.org GIT mirror llvm / c8be88a
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 David Greene 7 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4545 Use::initTags(many, many + 8212);
4646 for (const Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
4747 {
48 EXPECT_EQ((User*)(Ue + 1), U->getUser());
48 EXPECT_EQ(reinterpret_cast(const_cast(Ue + 1)),
49 U->getUser());
4950 }
5051 }
5152