From d9489cbb0cf933da9e2154a5336533d6254a5c30 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 2 Sep 2009 21:22:09 +0000 Subject: Use CallbackVH, instead of WeakVH, to hold MDNode elements. Use FoldingSetNode to unique MDNodes in a context. Use CallbackVH hooks to update context's MDNodeSet appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80839 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/VMCore/MetadataTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/VMCore') diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp index f174fb65b8..cdf5a6e6b9 100644 --- a/unittests/VMCore/MetadataTest.cpp +++ b/unittests/VMCore/MetadataTest.cpp @@ -85,7 +85,7 @@ TEST(MDNodeTest, Simple) { MDNode *n2 = MDNode::get(Context, &c1, 1); MDNode *n3 = MDNode::get(Context, &V[0], 3); EXPECT_NE(n1, n2); - // FIXME: Enable uniqueness test. EXPECT_EQ(n1, n3); + EXPECT_EQ(n1, n3); EXPECT_EQ(3u, n1->getNumElements()); EXPECT_EQ(s1, n1->getElement(0)); -- cgit v1.2.3-18-g5258