summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/IR/WaymarkTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp
index 69fc4da5a6..1e9807554c 100644
--- a/unittests/IR/WaymarkTest.cpp
+++ b/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());
}
}