diff options
author | dim <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 |
commit | 2b066988909948dc3d53d01760bc2d71d32f3feb (patch) | |
tree | fc5f365fb9035b2d0c622bbf06c9bbe8627d7279 /unittests/VMCore/MetadataTest.cpp | |
parent | c80ac9d286b8fcc6d1ee5d76048134cf80aa9edc (diff) | |
download | FreeBSD-src-2b066988909948dc3d53d01760bc2d71d32f3feb.zip FreeBSD-src-2b066988909948dc3d53d01760bc2d71d32f3feb.tar.gz |
Vendor import of llvm trunk r130700:
http://llvm.org/svn/llvm-project/llvm/trunk@130700
Diffstat (limited to 'unittests/VMCore/MetadataTest.cpp')
-rw-r--r-- | unittests/VMCore/MetadataTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp index 942b848..0b2c012 100644 --- a/unittests/VMCore/MetadataTest.cpp +++ b/unittests/VMCore/MetadataTest.cpp @@ -87,10 +87,10 @@ TEST_F(MDNodeTest, Simple) { V.push_back(CI); V.push_back(s2); - MDNode *n1 = MDNode::get(Context, &V[0], 3); + MDNode *n1 = MDNode::get(Context, V); Value *const c1 = n1; - MDNode *n2 = MDNode::get(Context, &c1, 1); - MDNode *n3 = MDNode::get(Context, &V[0], 3); + MDNode *n2 = MDNode::get(Context, c1); + MDNode *n3 = MDNode::get(Context, V); EXPECT_NE(n1, n2); #ifdef ENABLE_MDNODE_UNIQUING EXPECT_EQ(n1, n3); @@ -112,7 +112,7 @@ TEST_F(MDNodeTest, Delete) { Instruction *I = new BitCastInst(C, Type::getInt32Ty(getGlobalContext())); Value *const V = I; - MDNode *n = MDNode::get(Context, &V, 1); + MDNode *n = MDNode::get(Context, V); WeakVH wvh = n; EXPECT_EQ(n, wvh); @@ -127,8 +127,8 @@ TEST(NamedMDNodeTest, Search) { Value *const V = C; Value *const V2 = C2; - MDNode *n = MDNode::get(Context, &V, 1); - MDNode *n2 = MDNode::get(Context, &V2, 1); + MDNode *n = MDNode::get(Context, V); + MDNode *n2 = MDNode::get(Context, V2); Module M("MyModule", Context); const char *Name = "llvm.NMD1"; |