aboutsummaryrefslogtreecommitdiff
path: root/unittests/IR/WaymarkTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/IR/WaymarkTest.cpp')
-rw-r--r--unittests/IR/WaymarkTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp
index 69fc4da5a6..0fe0a431b2 100644
--- a/unittests/IR/WaymarkTest.cpp
+++ b/unittests/IR/WaymarkTest.cpp
@@ -44,9 +44,9 @@ TEST(WaymarkTest, TwoBit) {
Use* many = (Use*)calloc(sizeof(Use), 8212 + 1);
ASSERT_TRUE(many);
Use::initTags(many, many + 8212);
- for (const Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
+ for (Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
{
- EXPECT_EQ((User*)(Ue + 1), U->getUser());
+ EXPECT_EQ(reinterpret_cast<User *>(Ue + 1), U->getUser());
}
}