summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-09-03 01:39:20 +0000
committerDevang Patel <dpatel@apple.com>2009-09-03 01:39:20 +0000
commit5f4ac848d94b0a92e19ac7f2b3d0284d7d323173 (patch)
treeaf81190be5b56edee3349ab035ca80c06e75b145 /unittests
parentc0ff8c85dcc0bb3c58c15890b180dedaa726cb76 (diff)
Now Bitcode reader bug is fixed. Reapply 80839.
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@80868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/MetadataTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp
index f174fb65b81..cdf5a6e6b90 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));