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:
8e5c0da
)
Fix pointer casting problem.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 9 Apr 2009 03:10:03 +0000
(
03:10
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Thu, 9 Apr 2009 03:10:03 +0000
(
03:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68668
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/VMCore/MetadataTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/VMCore/MetadataTest.cpp
b/unittests/VMCore/MetadataTest.cpp
index cd258bb1708625b958c42bb395a8b78acd8ba0f2..6cf8bc7c2792d43decec27adb15b9f95c90ae67f 100644
(file)
--- a/
unittests/VMCore/MetadataTest.cpp
+++ b/
unittests/VMCore/MetadataTest.cpp
@@
-73,7
+73,8
@@
TEST(MDNodeTest, Everything) {
V.push_back(s2);
MDNode *n1 = MDNode::get(&V[0], 3);
- MDNode *n2 = MDNode::get((Constant**)&n1, 1);
+ Constant *const c1 = n1;
+ MDNode *n2 = MDNode::get(&c1, 1);
MDNode *n3 = MDNode::get(&V[0], 3);
EXPECT_NE(n1, n2);
EXPECT_EQ(n1, n3);