diff options
| author | David Greene <greened@obbligato.org> | 2013-01-14 21:04:35 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2013-01-14 21:04:35 +0000 |
| commit | 4c66a58b644bee6a8e2f1ac13c38901bfeddd84e (patch) | |
| tree | e35eed4ca15639793821f5f7c79273cca14e6f58 /llvm/unittests/IR/WaymarkTest.cpp | |
| parent | d4e1b5e29151a3ab01ffa099f962fa554229e410 (diff) | |
| download | llvm-4c66a58b644bee6a8e2f1ac13c38901bfeddd84e.zip llvm-4c66a58b644bee6a8e2f1ac13c38901bfeddd84e.tar.gz llvm-4c66a58b644bee6a8e2f1ac13c38901bfeddd84e.tar.bz2 | |
Fix Casts
Use const_cast<> to avoid cast-away-const errors.
llvm-svn: 172464
Diffstat (limited to 'llvm/unittests/IR/WaymarkTest.cpp')
| -rw-r--r-- | llvm/unittests/IR/WaymarkTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/IR/WaymarkTest.cpp b/llvm/unittests/IR/WaymarkTest.cpp index 69fc4da..1e98075 100644 --- a/llvm/unittests/IR/WaymarkTest.cpp +++ b/llvm/unittests/IR/WaymarkTest.cpp @@ -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()); } } |
