projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba5769
)
Fix Casts
author
David Greene
<greened@obbligato.org>
Mon, 14 Jan 2013 21:04:35 +0000
(21:04 +0000)
committer
David Greene
<greened@obbligato.org>
Mon, 14 Jan 2013 21:04:35 +0000
(21:04 +0000)
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
unittests/IR/WaymarkTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/IR/WaymarkTest.cpp
b/unittests/IR/WaymarkTest.cpp
index 69fc4da5a66a7d0c5bcbe23daee0f4b6422ba02c..1e9807554ccceeb4a8aed2847086361f205cd491 100644
(file)
--- 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());
}
}