mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Fix pointer casting problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e5c0da848
commit
49a4ba9241
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user